👉 Locators are elements that can be used to navigate through a web page or other document, such as text in HTML or links in XML. These elements allow users to select specific parts of the document based on their input or by selecting multiple elements at once. Locators can also be manipulated using JavaScript, allowing users to interact with the document programmatically.