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 TestContext
public void goTo(String url)
goTo
in interface TestContext
public void assertPresenceOf(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
assertPresenceOf
in interface TestContext
public void assertPresenceOf(org.hamcrest.Matcher<Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
assertPresenceOf
in interface TestContext
public void type(String input, Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
type
in interface TestContext
public void clickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
clickOn
in interface TestContext
public 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
Copyright © 2014. All rights reserved.