Debugging login

This commit is contained in:
Dirk Jahnke 2019-07-25 16:42:25 +02:00
parent d0079e81a5
commit f4611efed5
1 changed files with 6 additions and 3 deletions

View File

@ -65,9 +65,6 @@ public class BasicTest {
consentButton.click();
}
String body = driver.getPageSource();
System.out.println("HTML: " + body);
WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin")));
// WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));
@ -82,10 +79,16 @@ public class BasicTest {
String expectedTitle = "FreDL";
wait.until(ExpectedConditions.titleIs(expectedTitle));
String body = driver.getPageSource();
System.out.println("HTML: " + body);
//driver.switchTo().frame("oben");
String frameObenName = "oben";
wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName));
String body = driver.getPageSource();
System.out.println("HTML: " + body);
String versionInfo = driver.findElement(By.xpath("//table/tr/td/b")).getText();
String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText();
System.out.println("Version info found: " + versionInfo);