From fa079ae6975fb084b9cc84dea2b2f90d7b49fea2 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 19:36:36 +0200 Subject: [PATCH] Debugging login --- src/test/java/BasicTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 3099f57..b1c8322 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -81,6 +81,9 @@ public class BasicTest { String expectedTitle = "FreDL"; wait.until(ExpectedConditions.titleIs(expectedTitle)); + body = driver.getPageSource(); + System.out.println("HTML: " + body); + //driver.switchTo().frame("oben"); String frameObenName = "oben"; wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName)); @@ -95,7 +98,6 @@ public class BasicTest { System.out.println("User info found: " + userInfo); Assert.assertEquals(userInfo, expectedUserInfo); - driver.switchTo().frame(1); // switch to lower part containing left and right String frameRechtsName = "rechts"; driver.switchTo().frame(frameRechtsName); body = driver.getPageSource();