Ordering Locators

Tags: 

You may find that you need a different order for the locators (whether or not you add new ones).

To do this, make a .js file containing this line:

LocatorBuilders.order = ['id', 'link', 'name', 'dom:name', 'xpath:link', 'xpath:img', 'xpath:attributes', 'xpath:href', 'dom:index', 'xpath:position']; Then follow the instructions above using this file for the locator file.