Changed test condition for doLogin button
This commit is contained in:
parent
aff376e5fc
commit
b2d17f7811
|
@ -38,7 +38,8 @@ public class BasicTest {
|
||||||
@Test
|
@Test
|
||||||
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")));
|
||||||
|
|
||||||
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");
|
||||||
|
|
Loading…
Reference in New Issue