Debugging login

This commit is contained in:
Dirk Jahnke 2019-07-25 16:44:10 +02:00
parent f4611efed5
commit b087ad5872
1 changed files with 4 additions and 2 deletions

View File

@ -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();