Monthly Archives: April 2013

List of valid watir-webdriver locators

A question came up on the Watir General mailing list a month or so ago about determining the valid attribute locators. The short answer is that you should be able to use any attribute that is valid for the specific … Continue reading

Posted in Watir-Webdriver | 2 Comments

Directions analogy for locator strategies

A locator describes how to find an element amongst all of the other elements on the page. Think of it as giving directions to your house. The uniqueness of the house, who you are talking to, the complexity of your … Continue reading

Posted in Watir | Tagged | Leave a comment

Making multi-class locators order independent

Problem When using multiple classes to locate an element, the order of classes in the locator must match the order in the element’s attribute. For example, take a page that has the following div tag with 2 classes. It is … Continue reading

Posted in Watir, Watir-Classic, Watir-Webdriver | Tagged , | Leave a comment