O'Reilly logo
  • Tara Morrison thinks this is interesting:

Checking an element's presence

The Selenium WebDriver doesn't implement Selenium RC's isElementPresent() method for checking if an element is present on a page. This method is useful for building a reliable test where you can check an element's presence before performing any action on it.

In this recipe, we will write a method similar to the isElementPresent() method.

From

Cover of Selenium Testing Tools Cookbook

Note

How to write an isElementPresent method.