Fixed syntax errors

This commit is contained in:
Dirk Jahnke 2019-07-25 13:42:43 +02:00
parent cfe9535e18
commit 6d4ddbcc00
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class BasicTest {
@Test @Test
public void verifyLoginAsSystemUser() { public void verifyLoginAsSystemUser() {
driver.navigate().to(URL); driver.navigate().to(URL);
WebElement loginButton = wait.until(elementToBeClickable(By.name("doLogin")); WebElement loginButton = wait.until(elementToBeClickable(By.name("doLogin")));
driver.findElement(By.name("login")).sendKeys("system"); driver.findElement(By.name("login")).sendKeys("system");
driver.findElement(By.name("password")).sendKeys("system"); driver.findElement(By.name("password")).sendKeys("system");
@ -51,7 +51,7 @@ public class BasicTest {
//wait.until(ExpectedConditions.ElementIsVisible(By.className("menu"))); //wait.until(ExpectedConditions.ElementIsVisible(By.className("menu")));
wait.until(titleIs("FreDL")); wait.until(titleIs("FreDL"));
//driver.switchTo().frame("oben"); //driver.switchTo().frame("oben");
WebElement obenFrame = wait.until(frameToBeAvailableAndSwitchToIt("oben"); WebElement obenFrame = wait.until(frameToBeAvailableAndSwitchToIt("oben"));
String versionInfo = driver.findElement(By.xpath("/table/tr/td/b")).getText(); String versionInfo = driver.findElement(By.xpath("/table/tr/td/b")).getText();
String userInfo = driver.findElement(By.xpath("/table/tr/td[3]")).getText(); String userInfo = driver.findElement(By.xpath("/table/tr/td[3]")).getText();