Debugging login

This commit is contained in:
Dirk Jahnke 2019-07-25 16:47:53 +02:00
parent b087ad5872
commit d222590895
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class BasicTest {
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[0]/tbody/tr/td/b")).getText();
String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText(); String userInfo = driver.findElement(By.xpath("//table/tr/td[2]")).getText();
System.out.println("Version info found: " + versionInfo); System.out.println("Version info found: " + versionInfo);
System.out.println("User info found: " + userInfo); System.out.println("User info found: " + userInfo);