From d2225908951494c074e47aa0bb2113ff79fcf6dc Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 16:47:53 +0200 Subject: [PATCH] Debugging login --- src/test/java/BasicTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 6dc0e9b..c7f4135 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -91,7 +91,7 @@ public class BasicTest { 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[0]/tbody/tr/td/b")).getText(); String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText(); System.out.println("Version info found: " + versionInfo); System.out.println("User info found: " + userInfo);