Class HamcrestWebDriverTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.openqa.selenium.lift.HamcrestWebDriverTestCase
All Implemented Interfaces:
junit.framework.Test

@Deprecated public abstract class HamcrestWebDriverTestCase extends junit.framework.TestCase
Deprecated.
Base class for tests using the LiFT style API to driver WebDriver.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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
    clickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
    Deprecated.
     
    protected abstract org.openqa.selenium.WebDriver
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    Deprecated.
     
    protected org.openqa.selenium.WebDriver
    Deprecated.
     
    protected void
    goTo(String url)
    Deprecated.
    Cause the browser to navigate to the given URL
    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 with HamcrestWebDriverTestCase, e.g.
    protected void
    Deprecated.
     
    protected void
    Deprecated.
     
    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
    protected void
    waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
    Deprecated.
     
    protected void
    waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder, long timeout)
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • HamcrestWebDriverTestCase

      public HamcrestWebDriverTestCase()
      Deprecated.
  • Method Details

    • createDriver

      protected abstract org.openqa.selenium.WebDriver createDriver()
      Deprecated.
    • setUp

      protected void setUp() throws Exception
      Deprecated.
      Overrides:
      setUp in class junit.framework.TestCase
      Throws:
      Exception
    • tearDown

      protected void tearDown() throws Exception
      Deprecated.
      Overrides:
      tearDown in class junit.framework.TestCase
      Throws:
      Exception
    • getWebDriver

      protected org.openqa.selenium.WebDriver getWebDriver()
      Deprecated.
    • clickOn

      protected void clickOn(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
      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

      protected void waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder)
      Deprecated.
    • waitFor

      protected void waitFor(Finder<org.openqa.selenium.WebElement,org.openqa.selenium.WebDriver> finder, long timeout)
      Deprecated.
    • goTo

      protected void goTo(String url)
      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 type
      inputFinder - - 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 with HamcrestWebDriverTestCase, e.g. type("cheese", into(textbox())); The into() method simply returns its argument.
      Parameters:
      input - finder input
      Returns:
      the finder
    • getPageSource

      public String getPageSource()
      Deprecated.
      Returns:
      the current page source
    • getTitle

      public String getTitle()
      Deprecated.
      Returns:
      the current page title
    • getCurrentUrl

      public String 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.