Waits
Waits
The implicit wait will tell to the web driver to wait for certain amount of time
before it throws a "No Such Element Exception".
driver.manage().timeouts().implicitlyWait(TimeOut, TimeUnit.SECONDS);
()
Explicit Wait :
The explicit wait is used to tell the Web Driver to wait for certain conditions
(Expected Conditions) or
the maximum time exceeded before throwing an "ElementNotVisibleException"
exception.
Fluent Wait :
The fluent wait is used to tell the web driver to wait for a condition,
as well as the frequency with which we want to check the condition before throwing
an "ElementNotVisibleException" exception.
.withTimeout(30, TimeUnit.SECONDS)
.pollingEvery(5, TimeUnit.SECONDS)
.ignoring(NoSuchElementException.class);