Java, .NET, PHP, PYTHON, ANGULAR, .NET, ML, Data Scince, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

It is used to provide wait time for a particular time, it is mostly used where we run multiple processes simultaneously.

Type of wait:-

1) Implicit wait:-

It is used to provide a particular time interval after that performs navigation or another process.

WebDriver driver;
driver.manage().timeouts.implicitWait(timeinterval,TimeUnit.Seconds);

 

2) Explicit wait:-

It is used to provide wait time according to expected condition using a web element.

WebDriverWait wait=new WebDriverWait(driver, 20);
 
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("xpath"))); 



Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post