diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 9f67478..b1a3484 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -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);