WebDriverWait wait = new WebDriverWait(webDriver,timeoutInSeconds); wait.until(ExpectedConditions.visibilityOfElementLocated(By.id<locator>));