From 92d4da83b238289e7be167e3edfc269968f699e5 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 14:24:15 +0200 Subject: [PATCH] Changed condition for dologin button --- src/test/java/BasicTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");