Waits in Selenium WebDriver
If elements are not immediately available, an implicit wait tells the WebDriver to poll the DOM for a certain amount of time.
The default setting is 0. Once set, the implicit wait is set for the duration of the WebDriver object.
This means that we can tell Selenium WebDriver that we would like it to wait for a certain amount of time before throwing an exception that it cannot find the element on the page.
Explicit Wait is the custom one.
It will be used if we want the execution to wait for some time until some condition is achieved.
An explicit wait is what we can define to wait for a certain condition to occur before proceeding further in the code.
Below are some of the available expected conditions:
Example of Implicit wait:
Example of Explicit wait: