public class WebDriverTestContext extends 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<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(String url) |
void |
quit() |
void |
type(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(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<Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
assertPresenceOf in interface TestContextpublic void type(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 TestContextCopyright © 2015. All rights reserved.