Class DockerRemoteWebDriverFactory

java.lang.Object
org.jboss.arquillian.drone.webdriver.factory.DockerRemoteWebDriverFactory
All Implemented Interfaces:
org.jboss.arquillian.drone.spi.Configurator<org.openqa.selenium.remote.RemoteWebDriver,org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration>, org.jboss.arquillian.drone.spi.Destructor<org.openqa.selenium.remote.RemoteWebDriver>, org.jboss.arquillian.drone.spi.Instantiator<org.openqa.selenium.remote.RemoteWebDriver,org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration>, org.jboss.arquillian.drone.spi.Sortable

public class DockerRemoteWebDriverFactory extends Object implements org.jboss.arquillian.drone.spi.Configurator<org.openqa.selenium.remote.RemoteWebDriver,org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration>, org.jboss.arquillian.drone.spi.Instantiator<org.openqa.selenium.remote.RemoteWebDriver,org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration>, org.jboss.arquillian.drone.spi.Destructor<org.openqa.selenium.remote.RemoteWebDriver>
Custom Remote WebDriver Factory that generates a RemoteWebDriver pointing to Docker Selenium Docker IP.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.drone.webdriver.spi.BrowserCapabilitiesRegistry>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration
    createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor arg0, org.jboss.arquillian.drone.spi.DronePoint<org.openqa.selenium.remote.RemoteWebDriver> arg1)
     
    org.openqa.selenium.remote.RemoteWebDriver
    createInstance(org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration webDriverConfiguration)
     
    void
    destroyInstance(org.openqa.selenium.remote.RemoteWebDriver remoteWebDriver)
     
    protected String
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jboss.arquillian.drone.spi.Configurator

    createConfiguration
  • Field Details

    • registryInstance

      @Inject protected org.jboss.arquillian.core.api.Instance<org.jboss.arquillian.drone.webdriver.spi.BrowserCapabilitiesRegistry> registryInstance
  • Constructor Details

    • DockerRemoteWebDriverFactory

      public DockerRemoteWebDriverFactory()
  • Method Details

    • destroyInstance

      public void destroyInstance(org.openqa.selenium.remote.RemoteWebDriver remoteWebDriver)
      Specified by:
      destroyInstance in interface org.jboss.arquillian.drone.spi.Destructor<org.openqa.selenium.remote.RemoteWebDriver>
    • createInstance

      public org.openqa.selenium.remote.RemoteWebDriver createInstance(org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration webDriverConfiguration)
      Specified by:
      createInstance in interface org.jboss.arquillian.drone.spi.Instantiator<org.openqa.selenium.remote.RemoteWebDriver,org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration>
    • getDriverReadableName

      protected String getDriverReadableName()
    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface org.jboss.arquillian.drone.spi.Sortable
    • createConfiguration

      public org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor arg0, org.jboss.arquillian.drone.spi.DronePoint<org.openqa.selenium.remote.RemoteWebDriver> arg1)
      Specified by:
      createConfiguration in interface org.jboss.arquillian.drone.spi.Configurator<T extends org.openqa.selenium.WebDriver,org.jboss.arquillian.drone.webdriver.configuration.WebDriverConfiguration>