Fixed syntax errors

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

View File

@ -49,9 +49,9 @@ public class BasicTest {
//driver.findElement(By.xpath("//input[@name='doLogin']")).submit(); //driver.findElement(By.xpath("//input[@name='doLogin']")).submit();
//wait.until(ExpectedConditions.ElementIsVisible(By.xpath("//input[@class='menu'][0]")); //wait.until(ExpectedConditions.ElementIsVisible(By.xpath("//input[@class='menu'][0]"));
//wait.until(ExpectedConditions.ElementIsVisible(By.className("menu"))); //wait.until(ExpectedConditions.ElementIsVisible(By.className("menu")));
wait.until(titleIs("FreDL")); wait.until(ExpectedCondition.titleIs("FreDL"));
//driver.switchTo().frame("oben"); //driver.switchTo().frame("oben");
WebElement obenFrame = wait.until(frameToBeAvailableAndSwitchToIt("oben")); WebElement obenFrame = wait.until(ExpectedCondition.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();