Added debug output on first page
This commit is contained in:
parent
0cf00960ef
commit
a565114a99
|
@ -32,6 +32,7 @@ public class BasicTest {
|
||||||
public void verifyFredlPageTitle() {
|
public void verifyFredlPageTitle() {
|
||||||
driver.navigate().to(URL);
|
driver.navigate().to(URL);
|
||||||
String getTitle = driver.getTitle();
|
String getTitle = driver.getTitle();
|
||||||
|
System.out.println("Page title: " + getTitle);
|
||||||
Assert.assertEquals(getTitle, "FREDL");
|
Assert.assertEquals(getTitle, "FREDL");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,7 +40,7 @@ public class BasicTest {
|
||||||
public void verifyLoginAsSystemUser() {
|
public void verifyLoginAsSystemUser() {
|
||||||
driver.navigate().to(URL);
|
driver.navigate().to(URL);
|
||||||
System.out.println("Navigate to: " + URL);
|
System.out.println("Navigate to: " + URL);
|
||||||
String body = driver.page_source;
|
String body = driver.getPageSource();
|
||||||
System.out.println("HTML: " + body);
|
System.out.println("HTML: " + body);
|
||||||
String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText();
|
String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText();
|
||||||
System.out.println("Scale: " + scaleInfo);
|
System.out.println("Scale: " + scaleInfo);
|
||||||
|
|
Loading…
Reference in New Issue