Class AbstractSeleniumProvider<P extends SeleniumProvider<P,​D>,​D extends org.openqa.selenium.WebDriver>

    • Constructor Detail

      • AbstractSeleniumProvider

        public AbstractSeleniumProvider()
        Deprecated.
    • Method Detail

      • getWebDriver

        public org.openqa.selenium.WebDriver getWebDriver()
        Deprecated.
        Specified by:
        getWebDriver in interface SeleniumProvider<P extends SeleniumProvider<P,​D>,​D extends org.openqa.selenium.WebDriver>
        Returns:
        a new WebDriver instance
      • addWebDriverEventListener

        public <T extends org.openqa.selenium.support.events.WebDriverEventListener & org.junit.rules.TestRule> P addWebDriverEventListener​(T listener)
        Deprecated.
        Description copied from interface: SeleniumProvider
        Registers a new instance of WebDriverEventListener & TestRule to the created SeleniumProvider.
        Specified by:
        addWebDriverEventListener in interface SeleniumProvider<P extends SeleniumProvider<P,​D>,​D extends org.openqa.selenium.WebDriver>
        Parameters:
        listener - Implementation of WebDriverEventListener & TestRule added to the list of listeners
        Returns:
        the provider itself to make method chaining possible
      • before

        protected void before​(org.junit.runner.Description description)
                       throws java.lang.Throwable
        Deprecated.
        Description copied from class: TestFailureAwareRule
        Can do something before a test. By default it does nothing.
        Overrides:
        before in class TestFailureAwareRule
        Parameters:
        description - junit test description object
        Throws:
        java.lang.Throwable - any error from the test
      • after

        protected void after​(org.junit.runner.Description description,
                             java.lang.Throwable testFailure)
                      throws java.lang.Throwable
        Deprecated.
        Closes the webDriver which was created in this rule. Takes care if there is an exception while closing the webDriver.
        Overrides:
        after in class TestFailureAwareRule
        Parameters:
        description - junit test description object
        testFailure - in case of failed test it contains an exception. Otherwise null
        Throws:
        java.lang.Throwable - if testFailure is null, it will fly, if testFailure is not null, it will be added to that as suppressed exception. See Throwable.addSuppressed(Throwable)
      • constructWebDriver

        protected abstract D constructWebDriver​(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
        Deprecated.
      • createDesiredCapabilities

        protected org.openqa.selenium.remote.DesiredCapabilities createDesiredCapabilities​(org.junit.runner.Description description)
        Deprecated.