Debugging login
This commit is contained in:
parent
d0079e81a5
commit
f4611efed5
|
@ -65,9 +65,6 @@ public class BasicTest {
|
||||||
consentButton.click();
|
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.elementToBeClickable(By.name("doLogin")));
|
||||||
// WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));
|
// WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin"))));
|
||||||
|
|
||||||
|
@ -82,10 +79,16 @@ public class BasicTest {
|
||||||
String expectedTitle = "FreDL";
|
String expectedTitle = "FreDL";
|
||||||
wait.until(ExpectedConditions.titleIs(expectedTitle));
|
wait.until(ExpectedConditions.titleIs(expectedTitle));
|
||||||
|
|
||||||
|
String 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));
|
||||||
|
|
||||||
|
String body = driver.getPageSource();
|
||||||
|
System.out.println("HTML: " + body);
|
||||||
|
|
||||||
String versionInfo = driver.findElement(By.xpath("//table/tr/td/b")).getText();
|
String versionInfo = driver.findElement(By.xpath("//table/tr/td/b")).getText();
|
||||||
String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText();
|
String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText();
|
||||||
System.out.println("Version info found: " + versionInfo);
|
System.out.println("Version info found: " + versionInfo);
|
||||||
|
|
Loading…
Reference in New Issue