Wait in selenium Webdriver plays a crucial role in excution of Automation script,So in this tutorial we will discuss all the waits that can be provided by selenium for the smooth script execution.
What is implicit, explicit & Fluent wait in selenium?
So to overcome and make our automation script wait for the time required for web page to load and prevends from ‘ ElementNotVisibleException‘ we use wait commands.
There are basically 3 types of wait in selenium webdriver these are:
1) Implicit wait: By implementing the implicit wait in selenium webdriver automation script, the script wait for certain time span for the webpage to load and execution do not gets effected. The syntax for implicit wait is below.
This command accepts the 2 parameters which is Timeout in integer and measurement of time period these are SECONDS, MINUTES, MILISECOND etc.
2) Explicit wait: