diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 600ed23..07e4bc0 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -39,7 +39,7 @@ public class BasicTest { public void verifyLoginAsSystemUser() { driver.navigate().to(URL); // WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); - WebElement loginButton = wait.until(ExpectedConditions.elementIsVisible(By.name("doLogin"))); + WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin")))); driver.findElement(By.name("login")).sendKeys("system"); driver.findElement(By.name("password")).sendKeys("system");