From 9d2065993b51f6c9790e1af5e2bb71737ccc073d Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 15:45:05 +0200 Subject: [PATCH] Debugging login --- src/test/java/BasicTest.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 0baaa8b..5d1ae34 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -58,8 +58,6 @@ public class BasicTest { public void verifyLoginAsSystemUser() { driver.navigate().to(URL); System.out.println("Navigate to: " + URL); - // String body = driver.getPageSource(); - // System.out.println("HTML: " + body); if (elementExistsById("privacy-cookie-statement")) { System.out.println("Cookies consent page is shown"); @@ -67,8 +65,11 @@ public class BasicTest { consentButton.click(); } - // WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); - WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin")))); + String body = driver.getPageSource(); + System.out.println("HTML: " + body); + + WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); + // WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin")))); String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText(); System.out.println("Scale: " + scaleInfo);