From a565114a99704a6c7ce34c0964833b54767d98a3 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 14:52:12 +0200 Subject: [PATCH] Added debug output on first page --- src/test/java/BasicTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 2cf5e7a..adea696 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -32,6 +32,7 @@ public class BasicTest { public void verifyFredlPageTitle() { driver.navigate().to(URL); String getTitle = driver.getTitle(); + System.out.println("Page title: " + getTitle); Assert.assertEquals(getTitle, "FREDL"); } @@ -39,7 +40,7 @@ public class BasicTest { public void verifyLoginAsSystemUser() { driver.navigate().to(URL); System.out.println("Navigate to: " + URL); - String body = driver.page_source; + String body = driver.getPageSource(); System.out.println("HTML: " + body); String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText(); System.out.println("Scale: " + scaleInfo);