Package org.openqa.selenium.lift
Class WebDriverTestContext
- java.lang.Object
-
- org.openqa.selenium.lift.WebDriverTestContext
-
- All Implemented Interfaces:
TestContext
public class WebDriverTestContext extends java.lang.Object implements TestContext
Gives the context for a test, holds page state, and interacts with theWebDriver.
-
-
Constructor Summary
Constructors Constructor Description WebDriverTestContext(org.openqa.selenium.WebDriver driver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassertPresenceOf(org.hamcrest.Matcher<java.lang.Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)voidassertPresenceOf(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)voidclickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)voidclickOnFirst(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)voidgoTo(java.lang.String url)voidquit()voidtype(java.lang.String input, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)voidwaitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder, long timeoutMillis)
-
-
-
Method Detail
-
quit
public void quit()
- Specified by:
quitin interfaceTestContext
-
goTo
public void goTo(java.lang.String url)
- Specified by:
goToin interfaceTestContext
-
assertPresenceOf
public void assertPresenceOf(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
- Specified by:
assertPresenceOfin interfaceTestContext
-
assertPresenceOf
public void assertPresenceOf(org.hamcrest.Matcher<java.lang.Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)- Specified by:
assertPresenceOfin interfaceTestContext
-
type
public void type(java.lang.String input, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)- Specified by:
typein interfaceTestContext
-
clickOn
public void clickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
- Specified by:
clickOnin interfaceTestContext
-
clickOnFirst
public void clickOnFirst(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
-
waitFor
public void waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder, long timeoutMillis)
- Specified by:
waitForin interfaceTestContext
-
-