From b107c4122efa4f8b22aaddcb20cff3361c84b4c4 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 15:47:07 +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 5d1ae34..f435238 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -71,7 +71,7 @@ public class BasicTest { WebElement loginButton = wait.until(ExpectedConditions.elementToBeClickable(By.name("doLogin"))); // WebElement loginButton = wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.name("doLogin")))); - String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tr/td[0]/div")).getText(); + String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tbody/tr/td[0]/div")).getText(); System.out.println("Scale: " + scaleInfo); driver.findElement(By.name("login")).sendKeys("system");