Could not resolve method name
This commit is contained in:
parent
fee1edaf33
commit
55c86ac27c
|
@ -5,7 +5,7 @@ import org.openqa.selenium.WebDriver;
|
||||||
import org.openqa.selenium.WebElement;
|
import org.openqa.selenium.WebElement;
|
||||||
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
|
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
|
||||||
import org.openqa.selenium.support.ui.WebDriverWait;
|
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.Assert;
|
||||||
import org.testng.annotations.AfterClass;
|
import org.testng.annotations.AfterClass;
|
||||||
import org.testng.annotations.BeforeClass;
|
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.xpath("//input[@class='menu'][0]"));
|
||||||
//wait.until(ExpectedConditions.ElementIsVisible(By.className("menu")));
|
//wait.until(ExpectedConditions.ElementIsVisible(By.className("menu")));
|
||||||
String expectedTitle = "FreDL";
|
String expectedTitle = "FreDL";
|
||||||
wait.until(ExpectedCondition.titleIs(expectedTitle));
|
wait.until(ExpectedConditions.titleIs(expectedTitle));
|
||||||
//driver.switchTo().frame("oben");
|
//driver.switchTo().frame("oben");
|
||||||
String frameObenName = "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 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();
|
||||||
|
|
Loading…
Reference in New Issue