Monthly Archives: June 2015

Are :xpath locators slower?

Problem In the past, the Watir community has been resistive to using XPath locators. One of the reasons being the poor performance when locating elements. Occasionally I still see warnings of poor performance, but there seems to be more uncertainty. … Continue reading

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

Find elements based on the presence or absence of an attribute

Watir-Webdriver Issue #345 is a feature request to locate elements based on the presence of an attribute. For example, in the following HTML, the first div element does not have the data-test attribute. The other three divs do have the … Continue reading

Posted in Watir | Tagged , , | Leave a comment