From 55c86ac27c82a16ea9268e09b3d830e6970ac73e Mon Sep 17 00:00:00 2001 From: Dirk Jahnke Date: Thu, 25 Jul 2019 13:55:22 +0200 Subject: [PATCH] Could not resolve method name --- src/test/java/BasicTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/BasicTest.java b/src/test/java/BasicTest.java index 3d93c74..6f44425 100644 --- a/src/test/java/BasicTest.java +++ b/src/test/java/BasicTest.java @@ -5,7 +5,7 @@ import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.htmlunit.HtmlUnitDriver; import org.openqa.selenium.support.ui.WebDriverWait; -import org.openqa.selenium.support.ui.ExpectedCondition; +import org.openqa.selenium.support.ui.ExpectedConditions; import org.testng.Assert; import org.testng.annotations.AfterClass; import org.testng.annotations.BeforeClass; @@ -50,10 +50,10 @@ public class BasicTest { //wait.until(ExpectedConditions.ElementIsVisible(By.xpath("//input[@class='menu'][0]")); //wait.until(ExpectedConditions.ElementIsVisible(By.className("menu"))); String expectedTitle = "FreDL"; - wait.until(ExpectedCondition.titleIs(expectedTitle)); + wait.until(ExpectedConditions.titleIs(expectedTitle)); //driver.switchTo().frame("oben"); String frameObenName = "oben"; - WebElement obenFrame = wait.until(ExpectedCondition.frameToBeAvailableAndSwitchToIt(frameObenName)); + WebElement obenFrame = wait.until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(frameObenName)); String versionInfo = driver.findElement(By.xpath("/table/tr/td/b")).getText(); String userInfo = driver.findElement(By.xpath("/table/tr/td[3]")).getText();