Fixed: Syntax error

This commit is contained in:
Dirk Jahnke 2019-07-25 13:05:42 +02:00
parent 9abc5324ff
commit 3183fda907
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ public class BasicTest {
//driver.findElement(By.xpath("//input[@name='doLogin']")).submit(); //driver.findElement(By.xpath("//input[@name='doLogin']")).submit();
WebDriverWait waitForLoginDone = new WebDriverWait(browser, 15); WebDriverWait waitForLoginDone = new WebDriverWait(browser, 15);
//waitForLoginDone.until(ExpectedConditions.ElementIsVisible(By.xpath("//input[@class='menu'][0]")); //waitForLoginDone.until(ExpectedConditions.ElementIsVisible(By.xpath("//input[@class='menu'][0]"));
waitForLoginDone.until(ExpectedConditions.ElementIsVisible(By.classname("menu")); waitForLoginDone.until(ExpectedConditions.ElementIsVisible(By.classname("menu")));
driver.switchTo().frame("oben"); driver.switchTo().frame("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();