Debugging login
This commit is contained in:
parent
f4611efed5
commit
b087ad5872
|
@ -56,6 +56,8 @@ public class BasicTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void verifyLoginAsSystemUser() {
|
public void verifyLoginAsSystemUser() {
|
||||||
|
String body; // used for debugging purposes only
|
||||||
|
|
||||||
driver.navigate().to(URL);
|
driver.navigate().to(URL);
|
||||||
System.out.println("Navigate to: " + URL);
|
System.out.println("Navigate to: " + URL);
|
||||||
|
|
||||||
|
@ -79,14 +81,14 @@ public class BasicTest {
|
||||||
String expectedTitle = "FreDL";
|
String expectedTitle = "FreDL";
|
||||||
wait.until(ExpectedConditions.titleIs(expectedTitle));
|
wait.until(ExpectedConditions.titleIs(expectedTitle));
|
||||||
|
|
||||||
String body = driver.getPageSource();
|
body = driver.getPageSource();
|
||||||
System.out.println("HTML: " + body);
|
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();
|
body = driver.getPageSource();
|
||||||
System.out.println("HTML: " + body);
|
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();
|
||||||
|
|
Loading…
Reference in New Issue