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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access