Package org.openqa.selenium.lift
Class HamcrestWebDriverTestCase
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.openqa.selenium.lift.HamcrestWebDriverTestCase
- All Implemented Interfaces:
junit.framework.Test
Deprecated.
Base class for tests using the LiFT style API to driver WebDriver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertNotSelected(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected voidassertPresenceOf(org.hamcrest.Matcher<Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected voidassertPresenceOf(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected voidassertSelected(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected voidDeprecated.protected abstract org.openqa.selenium.WebDriverDeprecated.Deprecated.Deprecated.getTitle()Deprecated.protected org.openqa.selenium.WebDriverDeprecated.protected voidDeprecated.Cause the browser to navigate to the given URLprotected Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> Deprecated.Syntactic sugar to use withHamcrestWebDriverTestCase, e.g.protected voidsetUp()Deprecated.protected voidtearDown()Deprecated.protected voidDeprecated.Type characters into an element of the page, typically an input fieldprotected voidDeprecated.protected voidDeprecated.Methods inherited from class junit.framework.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
-
Constructor Details
-
HamcrestWebDriverTestCase
public HamcrestWebDriverTestCase()Deprecated.
-
-
Method Details
-
createDriver
protected abstract org.openqa.selenium.WebDriver createDriver()Deprecated. -
setUp
Deprecated.- Overrides:
setUpin classjunit.framework.TestCase- Throws:
Exception
-
tearDown
Deprecated.- Overrides:
tearDownin classjunit.framework.TestCase- Throws:
Exception
-
getWebDriver
protected org.openqa.selenium.WebDriver getWebDriver()Deprecated. -
clickOn
Deprecated. -
assertPresenceOf
protected void assertPresenceOf(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated. -
assertPresenceOf
protected void assertPresenceOf(org.hamcrest.Matcher<Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated. -
waitFor
Deprecated. -
waitFor
protected void waitFor(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder, long timeout) Deprecated. -
goTo
Deprecated.Cause the browser to navigate to the given URL- Parameters:
url- URL
-
type
protected void type(String text, Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> inputFinder) Deprecated.Type characters into an element of the page, typically an input field- Parameters:
text- - characters to typeinputFinder- - specification for the page element
-
into
protected Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> into(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> input) Deprecated.Syntactic sugar to use withHamcrestWebDriverTestCase, e.g. type("cheese", into(textbox())); The into() method simply returns its argument.- Parameters:
input- finder input- Returns:
- the finder
-
getPageSource
Deprecated.- Returns:
- the current page source
-
getTitle
Deprecated.- Returns:
- the current page title
-
getCurrentUrl
Deprecated.- Returns:
- the current URL
-
assertSelected
protected void assertSelected(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated. -
assertNotSelected
protected void assertNotSelected(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.
-