Changed condition for dologin button
This commit is contained in:
parent
b2d17f7811
commit
92d4da83b2
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue