Ilan Malyanker, automation developer at LivePerson presented: "Selenium WebDriver Element locators" As part of "Selenium Israel Meetup #3", at Google Campus TLV (http://www.meetup.com/Selenium-Israel/events/169326892/)
In continuous integration world, stability and reliability of tests are placed much higher in the priority list of more and more organizations. System tests involving web sites simulation & verification would be more robust and reliable when the locators used, are carefully selected and configured.
For our tests to survive version changes,GUI updates & modifications, the following is required:
1. Use the correct locating strategy
2. Supply the appropriate locator string with maximum focus and minimum external dependencies
This is an overview of all WebDriver locator strategies, provided by selenium module.
The credit for some of the ideas and samples should be given to:
- Selenium Testing Tools Cookbook