Added debug output on first page

This commit is contained in:
Dirk Jahnke 2019-07-25 14:33:32 +02:00
parent 92d4da83b2
commit 20e651f9fb
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ public class BasicTest {
@Test @Test
public void verifyLoginAsSystemUser() { public void verifyLoginAsSystemUser() {
driver.navigate().to(URL); driver.navigate().to(URL);
System.out.println("Navigate to: " + URL);
String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText();
System.out.println("Scale: " + scaleInfo);
// WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); // WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin")));
WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin")))); WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));