Implicit wait :
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
Explicit Wait:
Wait<WebDriver> wait = new WebDriverWait(driver, 30);WebElement element= wait.until(visibilityOfElementLocated(By.id("some_id")));
No comments:
Post a Comment