From b087ad5872dc50c0468b5cae7e84efebfb3d382b Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 16:44:10 +0200 Subject: [PATCH] Debugging login --- src/test/java/BasicTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index b1a3484..6dc0e9b 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -56,6 +56,8 @@ public class BasicTest { @Test public void verifyLoginAsSystemUser() { + String body; // used for debugging purposes only + driver.navigate().to(URL); System.out.println("Navigate to: " + URL); @@ -79,14 +81,14 @@ public class BasicTest { String expectedTitle = "FreDL"; wait.until(ExpectedConditions.titleIs(expectedTitle)); - String body = driver.getPageSource(); + body = driver.getPageSource(); System.out.println("HTML: " + body); //driver.switchTo().frame("oben"); String frameObenName = "oben"; wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName)); - String body = driver.getPageSource(); + body = driver.getPageSource(); System.out.println("HTML: " + body); String versionInfo = driver.findElement(By.xpath("//table/tr/td/b")).getText();