Class SafariDriverFactory

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

public class SafariDriverFactory extends Object implements Configurator<org.openqa.selenium.safari.SafariDriver,WebDriverConfiguration>, Instantiator<org.openqa.selenium.safari.SafariDriver,WebDriverConfiguration>, Destructor<org.openqa.selenium.safari.SafariDriver>
Factory which combines Configurator, Instantiator and Destructor for SafariDriver.
Author:
Jiri Locker
  • Field Details

  • Constructor Details

    • SafariDriverFactory

      public SafariDriverFactory()
  • Method Details

    • getPrecedence

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

      public void destroyInstance(org.openqa.selenium.safari.SafariDriver instance)
      Specified by:
      destroyInstance in interface Destructor<org.openqa.selenium.safari.SafariDriver>
    • createInstance

      public org.openqa.selenium.safari.SafariDriver createInstance(WebDriverConfiguration configuration)
      Specified by:
      createInstance in interface Instantiator<org.openqa.selenium.safari.SafariDriver,WebDriverConfiguration>
    • getOptions

      public org.openqa.selenium.safari.SafariOptions getOptions(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
    • getDriverReadableName

      protected String getDriverReadableName()
    • createConfiguration

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