From fee1edaf33f38217314e12f8d5eb7c31344489bf Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 13:52:45 +0200 Subject: [PATCH] Could not resolve method name --- src/test/java/BasicTest.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 333902a..3d93c74 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -49,9 +49,11 @@ public class BasicTest { //driver.findElement(By.xpath("//input[@name='doLogin']")).submit(); //wait.until(ExpectedConditions.ElementIsVisible(By.xpath("//input[@class='menu'][0]")); //wait.until(ExpectedConditions.ElementIsVisible(By.className("menu"))); - wait.until(ExpectedCondition.titleIs("FreDL")); + String expectedTitle = "FreDL"; + wait.until(ExpectedCondition.titleIs(expectedTitle)); //driver.switchTo().frame("oben"); - WebElement obenFrame = wait.until(ExpectedCondition.frameToBeAvailableAndSwitchToIt("oben")); + String frameObenName = "oben"; + WebElement obenFrame = wait.until(ExpectedCondition.frameToBeAvailableAndSwitchToIt(frameObenName)); String versionInfo = driver.findElement(By.xpath("/table/tr/td/b")).getText(); String userInfo = driver.findElement(By.xpath("/table/tr/td[3]")).getText();