From 833d86e27d3c24aa4895fe7c07679165adb75cf6 Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 11:47:33 +0200 Subject: [PATCH] Fixed syntax error and added xpath to login button --- src/test/java/BasicTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 0dc0ced..4e2825b 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -31,10 +31,9 @@ public class BasicTest { @Test public void verifyLoginAsSystemUser() { driver.navigate().to(URL); - WebElement element = driver.findElement(By.name("name")).sendKeys("system"); driver.findElement(By.name("password")).sendKeys("system"); - driver.submit(); + driver.findElement(By.name("doLogin")).submit(); driver.switchTo().frame("oben"); String versionInfo = driver.findElement(By.xpath("/table/tr/td/b")).getText(); String userInfo = driver.findElement(By.xpath("/table/tr/td[3]")).getText();