From b2d17f78111241553dbddec63c42eaa7061384ca Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 14:06:39 +0200 Subject: [PATCH] Changed test condition for doLogin button --- src/test/java/BasicTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 7a2aad0..600ed23 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -38,7 +38,8 @@ public class BasicTest { @Test public void verifyLoginAsSystemUser() { driver.navigate().to(URL); - WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); + // WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); + WebElement loginButton = wait.until(ExpectedConditions.elementIsVisible(By.name("doLogin"))); driver.findElement(By.name("login")).sendKeys("system"); driver.findElement(By.name("password")).sendKeys("system");