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:
If we use above code for implicit wait then script will execute next line on code after 60 seconds.
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.
0 Comments
What would you like to add in my list? I look forward to reading your comments below.