diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 52898c2..3f4d9ea 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/tbody/tr/td/div")).getText(); + String scaleInfo = driver.findElement(By.xpath("//table/tbody/tr/td/div")).getText(); //String scaleInfo = driver.findElement(By.xpath("/table[@class='loginall']/tbody/tr/td/div")).getText(); System.out.println("Scale: " + scaleInfo);