The main locators used in mobile automation are as follows:
- Accessibility id: Unique identifier for a UI element.
- TagName: The same as WebDriver. This tells us what the tag is (input, select, and so on).
- Class Name: Identifies by the classname attribute.
- Xpath: Identifies by the absolute or customized XPath.
- ID: Identifies by the ID of the element.