Class FirefoxDriverFactory
java.lang.Object
org.jboss.arquillian.drone.webdriver.factory.FirefoxDriverFactory
- All Implemented Interfaces:
Configurator<org.openqa.selenium.firefox.FirefoxDriver,,WebDriverConfiguration> Destructor<org.openqa.selenium.firefox.FirefoxDriver>,Instantiator<org.openqa.selenium.firefox.FirefoxDriver,,WebDriverConfiguration> Sortable
public class FirefoxDriverFactory
extends Object
implements Configurator<org.openqa.selenium.firefox.FirefoxDriver,WebDriverConfiguration>, Instantiator<org.openqa.selenium.firefox.FirefoxDriver,WebDriverConfiguration>, Destructor<org.openqa.selenium.firefox.FirefoxDriver>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, DronePoint<org.openqa.selenium.firefox.FirefoxDriver> dronePoint) org.openqa.selenium.firefox.FirefoxDrivercreateInstance(WebDriverConfiguration configuration) voiddestroyInstance(org.openqa.selenium.firefox.FirefoxDriver instance) protected Stringorg.openqa.selenium.firefox.FirefoxOptionsgetFirefoxOptions(WebDriverConfiguration configuration, boolean performValidations) Returns aFirefoxOptionsinstance with set all necessary properties.intMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.arquillian.drone.spi.Configurator
createConfiguration
-
Field Details
-
FIREFOX_DRIVER_BINARY_PROPERTY
- See Also:
-
registryInstance
@Inject protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> registryInstance
-
-
Constructor Details
-
FirefoxDriverFactory
public FirefoxDriverFactory()
-
-
Method Details
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceSortable
-
destroyInstance
public void destroyInstance(org.openqa.selenium.firefox.FirefoxDriver instance) - Specified by:
destroyInstancein interfaceDestructor<org.openqa.selenium.firefox.FirefoxDriver>
-
createInstance
public org.openqa.selenium.firefox.FirefoxDriver createInstance(WebDriverConfiguration configuration) - Specified by:
createInstancein interfaceInstantiator<org.openqa.selenium.firefox.FirefoxDriver,WebDriverConfiguration>
-
getFirefoxOptions
public org.openqa.selenium.firefox.FirefoxOptions getFirefoxOptions(WebDriverConfiguration configuration, boolean performValidations) Returns aFirefoxOptionsinstance with set all necessary properties. It also validates whether the defined firefoxDriverBinary are executable binaries and creates/sets a prospective firefox profile as well as a firefox extension. This validation can be set off/on by using variable performValidations; if set to true the IllegalArgumentException can be thrown in case when requirements are not met- Parameters:
configuration- A configuration object for Drone extensionperformValidations- 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
FirefoxOptionsinstance with set all necessary properties; if set to true the IllegalArgumentException can be thrown in case when requirements are not met
-
getDriverReadableName
-
createConfiguration
public WebDriverConfiguration createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, DronePoint<org.openqa.selenium.firefox.FirefoxDriver> dronePoint) - Specified by:
createConfigurationin interfaceConfigurator<T extends org.openqa.selenium.WebDriver,WebDriverConfiguration>
-