TIME OUTS – WAIT
Implicit Waits:
driver.manage().timeouts().implicitlyWait(10,TimeUnit.SECONDS);EXPLICIT WAITS
WebDriverWait wait=newWebDriverWait(driver,10);
WebElement element=wait.until(ExpectedConditions.elementToBeClickable(By.id("someid")));
|
No comments:
Post a Comment