Debugging login

This commit is contained in:
Dirk Jahnke 2019-07-25 19:36:36 +02:00
parent f1bc38524d
commit fa079ae697
1 changed files with 3 additions and 1 deletions

View File

@ -81,6 +81,9 @@ public class BasicTest {
String expectedTitle = "FreDL"; String expectedTitle = "FreDL";
wait.until(ExpectedConditions.titleIs(expectedTitle)); wait.until(ExpectedConditions.titleIs(expectedTitle));
body = driver.getPageSource();
System.out.println("HTML: " + body);
//driver.switchTo().frame("oben"); //driver.switchTo().frame("oben");
String frameObenName = "oben"; String frameObenName = "oben";
wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName)); wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName));
@ -95,7 +98,6 @@ public class BasicTest {
System.out.println("User info found: " + userInfo); System.out.println("User info found: " + userInfo);
Assert.assertEquals(userInfo, expectedUserInfo); Assert.assertEquals(userInfo, expectedUserInfo);
driver.switchTo().frame(1); // switch to lower part containing left and right
String frameRechtsName = "rechts"; String frameRechtsName = "rechts";
driver.switchTo().frame(frameRechtsName); driver.switchTo().frame(frameRechtsName);
body = driver.getPageSource(); body = driver.getPageSource();