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.
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 .