Here is an example for same:
WebDriverWait wait = new WebDriverWait(webDriver, 5);//here 5 is a maximum waiting time in seconds
wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath("//*[@value='SignIn']")));
//ExpectedConditions have lot of functions for different actions,so use these functions according your requirement.
No comments:
Post a Comment