org.openqa.selenium.lift
Class WebDriverTestContext
java.lang.Object
org.openqa.selenium.lift.WebDriverTestContext
- All Implemented Interfaces:
- TestContext
public class WebDriverTestContext
- extends Object
- implements TestContext
Gives the context for a test, holds page state, and interacts with the WebDriver
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebDriverTestContext
public WebDriverTestContext(WebDriver driver)
quit
public void quit()
- Specified by:
quit
in interface TestContext
goTo
public void goTo(String url)
- Specified by:
goTo
in interface TestContext
assertPresenceOf
public void assertPresenceOf(Finder<WebElement,WebDriver> finder)
- Specified by:
assertPresenceOf
in interface TestContext
assertPresenceOf
public void assertPresenceOf(org.hamcrest.Matcher<Integer> cardinalityConstraint,
Finder<WebElement,WebDriver> finder)
- Specified by:
assertPresenceOf
in interface TestContext
type
public void type(String input,
Finder<WebElement,WebDriver> finder)
- Specified by:
type
in interface TestContext
clickOn
public void clickOn(Finder<WebElement,WebDriver> finder)
- Specified by:
clickOn
in interface TestContext
clickOnFirst
public void clickOnFirst(Finder<WebElement,WebDriver> finder)
waitFor
public void waitFor(Finder<WebElement,WebDriver> finder,
long timeoutMillis)
- Specified by:
waitFor
in interface TestContext
Copyright © 2013. All Rights Reserved.