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

  • Type Parameters:
    P - concrete implementation class. Makes type safe method chaining in implementations possible
    D - concrete implementation of WebDriver provided
    All Known Implementing Classes:
    AbstractFirefoxProvider, AbstractSeleniumProvider, LocalFirefoxProvider, SeleniumHubFirefoxProvider

    @Deprecated
    public interface SeleniumProvider<P extends SeleniumProvider,​D extends org.openqa.selenium.WebDriver>
    Deprecated.
    Creates a WebDriver instance with respecting all configuration participants given to it.

    • Field Detail

      • FIND_ELEMENT_TIMEOUT

        static final long FIND_ELEMENT_TIMEOUT
        Deprecated.
        See Also:
        Constant Field Values
    • Method Detail

      • getWebDriver

        org.openqa.selenium.WebDriver getWebDriver()
        Deprecated.
        Returns:
        a new WebDriver instance
      • getDefaultWebDriverWait

        default org.openqa.selenium.support.ui.WebDriverWait getDefaultWebDriverWait()
        Deprecated.
        Since Wait is something, what is fast always used in selenium tests, this method returns a default wait to be used with the WebDriver. This way there is no need to create different instances in page objects with different timeouts. This makes easy to change all timeouts at a single place later. Default implementation returns a WebDriverWait with 30L seconds timeout.
        Returns:
        the default WebDriverWait instance to be used with the WebDriver
      • addWebDriverConfigurationParticipant

        P addWebDriverConfigurationParticipant​(WebDriverConfigurationParticipant<D> webDriverConfigurationParticipant)
        Deprecated.
        After creating a new WebDriver instance, a SeleniumProvider implementation should pass that instance to all WebDriverConfigurationParticipant to let them adjust it.
        Parameters:
        webDriverConfigurationParticipant - participant to be added to the list
        Returns:
        the provider itself to make method chaining possible
      • addWebDriverEventListener

        <T extends org.openqa.selenium.support.events.WebDriverEventListener & org.junit.rules.TestRule> P addWebDriverEventListener​(T listener)
        Deprecated.
        Registers a new instance of WebDriverEventListener & TestRule to the created SeleniumProvider.
        Parameters:
        listener - Implementation of WebDriverEventListener & TestRule added to the list of listeners
        Returns:
        the provider itself to make method chaining possible
      • getThis

        P getThis()
        Deprecated.
        Gives back the current instance as #P back to make method chaining possible in a type safe manner.
        Returns:
        the current instance. Enables type safe method chaining in implementations