The standards to use for defining locators will vary from AUT to AUT. In a perfect world, all browser and mobile pages would have a unique ID assigned to each element in the application, and users would just create a static locator using those IDs. Unfortunately, it is not a perfect world.
However, there are some common best practices that users can follow to ensure the framework is as efficient as possible.
Let's take a look at each type of locator.