public class WebDriverTestContext extends java.lang.Object implements TestContext
WebDriver.| Constructor and Description |
|---|
WebDriverTestContext(org.openqa.selenium.WebDriver driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
assertPresenceOf(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder) |
void |
assertPresenceOf(org.hamcrest.Matcher<java.lang.Integer> cardinalityConstraint,
Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder) |
void |
clickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder) |
void |
clickOnFirst(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder) |
void |
goTo(java.lang.String url) |
void |
quit() |
void |
type(java.lang.String input,
Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder) |
void |
waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder,
long timeoutMillis) |
public WebDriverTestContext(org.openqa.selenium.WebDriver driver)
public void quit()
quit in interface TestContextpublic void goTo(java.lang.String url)
goTo in interface TestContextpublic void assertPresenceOf(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
assertPresenceOf in interface TestContextpublic void assertPresenceOf(org.hamcrest.Matcher<java.lang.Integer> cardinalityConstraint,
Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
assertPresenceOf in interface TestContextpublic void type(java.lang.String input,
Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
type in interface TestContextpublic void clickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
clickOn in interface TestContextpublic void clickOnFirst(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
public void waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder, long timeoutMillis)
waitFor in interface TestContext