Changed find-by-name to xpath
This commit is contained in:
parent
3c97a83ed3
commit
96c734e2eb
|
@ -31,9 +31,9 @@ public class BasicTest {
|
|||
@Test
|
||||
public void verifyLoginAsSystemUser() {
|
||||
driver.navigate().to(URL);
|
||||
driver.findElement(By.name("login")).sendKeys("system");
|
||||
driver.findElement(By.name("password")).sendKeys("system");
|
||||
driver.findElement(By.name("doLogin")).submit();
|
||||
driver.findElement(By.xpath("//input[@name='login']")).sendKeys("system");
|
||||
driver.findElement(By.xpath("//input[@name='password']")).sendKeys("system");
|
||||
driver.findElement(By.xpath("//input[@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();
|
||||
|
|
Loading…
Reference in New Issue