Changed condition for dologin button

This commit is contained in:
Dirk Jahnke 2019-07-25 14:24:15 +02:00
parent b2d17f7811
commit 92d4da83b2
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class BasicTest {
public void verifyLoginAsSystemUser() { public void verifyLoginAsSystemUser() {
driver.navigate().to(URL); 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"))); WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));
driver.findElement(By.name("login")).sendKeys("system"); driver.findElement(By.name("login")).sendKeys("system");
driver.findElement(By.name("password")).sendKeys("system"); driver.findElement(By.name("password")).sendKeys("system");