From 117e038b3130e84d751a492baf8f3727762389e5 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 16:53:02 +0200 Subject: [PATCH] Debugging login --- src/test/java/BasicTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index c7f4135..036e8e0 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -91,8 +91,8 @@ public class BasicTest { body = driver.getPageSource(); System.out.println("HTML: " + body); - String versionInfo = driver.findElement(By.xpath("//table[0]/tbody/tr/td/b")).getText(); - String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText(); + String versionInfo = driver.findElement(By.xpath("//table[1]/tbody/tr/td[1]/b")).getText(); + String userInfo = driver.findElement(By.xpath("//table[1]/tr/td[3]")).getText(); System.out.println("Version info found: " + versionInfo); System.out.println("User info found: " + userInfo);