WHAT IS IMPLICIT WAIT IN SELENIUM WEBDRIVER?

Implicit Wait is a method in Selenium WebDriver to pause the script till defined time.
When implicit wait method is called into a automation script then script will wait till defined time to execute the next command.




Sample code for implicit wait is:
driver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);
//where driver is the already defined WebDriver instance




If we use above code for implicit wait then script will execute next line on code after 60 seconds.






Post a Comment

0 Comments