Handling Time Outs in Selenium(WebDriver) - Bug Reaper

                  Bug Reaper

Lean about Automation Testing,Selenium WebDriver,RestAssured,Appium,Jenkins,JAVA,API Automation,TestNG,Maven, Rest API, SOAP API,Linux,Maven,Security Testing,Interview Questions

Monday 23 September 2013

Handling Time Outs in Selenium(WebDriver)

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