Tag Archives: visible?

Finding visible/hidden elements with the new :visible locator

Watir 6.0 introduces a new locator – :visible. This allows you to specify whether or not the element can be seen by the user. Usage Consider the following page where the first div is visible and first span element is … Continue reading

Posted in Watir | Tagged , | Leave a comment

Checking for an element – exists?, visible?, present?

Observation Back when I started Watir, there was only one method to check for an element on the page – Element#exists?. Now, several versions later, there are three – Element#exists?, Element#visible? and Element#present?. The three methods are not aliases of … Continue reading

Posted in Watir, Watir-Classic, Watir-Webdriver | Tagged , , , , , | 6 Comments