Class RemoteWebDriverFactory

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

public class RemoteWebDriverFactory extends Object implements Configurator<org.openqa.selenium.remote.RemoteWebDriver,WebDriverConfiguration>, Instantiator<org.openqa.selenium.remote.RemoteWebDriver,WebDriverConfiguration>, Destructor<org.openqa.selenium.remote.RemoteWebDriver>
Author:
Karel Piwko, Jan Papousek, Lukas Fryc
  • Field Details

  • Constructor Details

    • RemoteWebDriverFactory

      public RemoteWebDriverFactory()
  • Method Details

    • getPrecedence

      public int getPrecedence()
      Specified by:
      getPrecedence in interface Sortable
    • createInstance

      public org.openqa.selenium.remote.RemoteWebDriver createInstance(WebDriverConfiguration configuration)
      Specified by:
      createInstance in interface Instantiator<org.openqa.selenium.remote.RemoteWebDriver,WebDriverConfiguration>
    • getCapabilities

      public org.openqa.selenium.Capabilities getCapabilities(WebDriverConfiguration configuration, boolean performValidations)
      Returns a Capabilities instance which is completely same as that one that is contained in the configuration object itself - there is no necessary properties to be set.
      Parameters:
      configuration - A configuration object for Drone extension
      performValidations - Whether a potential validation should be performed; if set to true an IllegalArgumentException (or other exception) can be thrown in case requirements are not met
      Returns:
      A Capabilities instance
    • destroyInstance

      public void destroyInstance(org.openqa.selenium.remote.RemoteWebDriver driver)
      Specified by:
      destroyInstance in interface Destructor<org.openqa.selenium.remote.RemoteWebDriver>
    • getDriverReadableName

      protected String getDriverReadableName()
    • createRemoteDriver

      protected org.openqa.selenium.remote.RemoteWebDriver createRemoteDriver(URL remoteAddress, org.openqa.selenium.Capabilities capabilities)
    • createConfiguration

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