Debugging login
This commit is contained in:
parent
f1bc38524d
commit
fa079ae697
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue