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

How it works...

The Selenium WebDriver provides the ability to implement the custom ExpectedCondition class along with the WebDriverWait class for creating a custom-wait condition, as needed by a test. In this example, we created a custom condition, which returns a WebElement object once the inner findElement() method locates the element within a specified timeout as follows:

			

From

Cover of Selenium Testing Tools Cookbook

Note

stuff about expected conditions + waits