Implicit wait

The implicit wait is the first type of conditional synchronization that is always at the WebDriver-instance level. As long as the WebDriver instance is active, this wait is effective. 

The way to use the implicit wait is by phrasing it as driver.manage().timeouts().implicitlyWait(14, TimeUnit.SECONDS);.

The manage() method, when invoked on the driver object, returns an object of the options interface, after which we invoke the timeouts() method in the options interface. The timeouts() method returns an object of the timeouts interface. Finally, we invoke the implicitelyWait(long, TimeUnit) method of the timeouts interface. The implicitelyWait method is a factory method that returns an object of the same interface, namely timeouts ...

Get Selenium WebDriver Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.