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
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertNotSelected
(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected void
assertPresenceOf
(org.hamcrest.Matcher<Integer> cardinalityConstraint, Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected void
assertPresenceOf
(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected void
assertSelected
(Finder<org.openqa.selenium.WebElement, org.openqa.selenium.WebDriver> finder) Deprecated.protected void
Deprecated.protected abstract org.openqa.selenium.WebDriver
Deprecated.Deprecated.Deprecated.getTitle()
Deprecated.protected org.openqa.selenium.WebDriver
Deprecated.protected void
Deprecated.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 void
setUp()
Deprecated.protected void
tearDown()
Deprecated.protected void
Deprecated.Type characters into an element of the page, typically an input fieldprotected void
Deprecated.protected void
Deprecated.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:
setUp
in classjunit.framework.TestCase
- Throws:
Exception
-
tearDown
Deprecated.- Overrides:
tearDown
in 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.
-