Class BrowserstackSeleniumProvider

  • All Implemented Interfaces:
    at.willhaben.willtest.config.SeleniumProvider<BrowserstackSeleniumProvider,​org.openqa.selenium.remote.RemoteWebDriver>, org.junit.rules.TestRule

    public class BrowserstackSeleniumProvider
    extends at.willhaben.willtest.rule.AbstractSeleniumProvider<BrowserstackSeleniumProvider,​org.openqa.selenium.remote.RemoteWebDriver>
    SeleniumProvider implementation to run tests on BrowserStack. It is basically a normal selenium hub connection with some special properties
    • Field Summary

      • Fields inherited from interface at.willhaben.willtest.config.SeleniumProvider

        FIND_ELEMENT_TIMEOUT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void before​(org.junit.runner.Description description)  
      protected org.openqa.selenium.remote.RemoteWebDriver constructWebDriver​(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)  
      protected org.openqa.selenium.remote.DesiredCapabilities createDesiredCapabilities​(org.junit.runner.Description description)  
      BrowserstackSeleniumProvider getThis()  
      • Methods inherited from class at.willhaben.willtest.rule.AbstractSeleniumProvider

        addWebDriverConfigurationParticipant, addWebDriverEventListener, after, getWebDriver
      • Methods inherited from class at.willhaben.willtest.rule.TestFailureAwareRule

        apply, onError
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface at.willhaben.willtest.config.SeleniumProvider

        getDefaultWebDriverWait
    • Constructor Detail

      • BrowserstackSeleniumProvider

        public BrowserstackSeleniumProvider()
    • Method Detail

      • createDesiredCapabilities

        protected org.openqa.selenium.remote.DesiredCapabilities createDesiredCapabilities​(org.junit.runner.Description description)
        Overrides:
        createDesiredCapabilities in class at.willhaben.willtest.rule.AbstractSeleniumProvider<BrowserstackSeleniumProvider,​org.openqa.selenium.remote.RemoteWebDriver>
      • constructWebDriver

        protected org.openqa.selenium.remote.RemoteWebDriver constructWebDriver​(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
        Specified by:
        constructWebDriver in class at.willhaben.willtest.rule.AbstractSeleniumProvider<BrowserstackSeleniumProvider,​org.openqa.selenium.remote.RemoteWebDriver>
      • before

        protected void before​(org.junit.runner.Description description)
                       throws java.lang.Throwable
        Overrides:
        before in class at.willhaben.willtest.rule.AbstractSeleniumProvider<BrowserstackSeleniumProvider,​org.openqa.selenium.remote.RemoteWebDriver>
        Throws:
        java.lang.Throwable