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>
Modifier and Type | Field and Description |
---|---|
protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> |
registryInstance |
Constructor and Description |
---|
FirefoxDriverFactory() |
Modifier and Type | Method and Description |
---|---|
WebDriverConfiguration |
createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor,
DronePoint<T> dronePoint) |
org.openqa.selenium.firefox.FirefoxDriver |
createInstance(WebDriverConfiguration configuration) |
void |
destroyInstance(org.openqa.selenium.firefox.FirefoxDriver instance) |
org.openqa.selenium.Capabilities |
getCapabilities(WebDriverConfiguration configuration,
boolean performValidations)
Returns a
Capabilities instance with set all necessary properties. |
protected String |
getDriverReadableName() |
int |
getPrecedence() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createConfiguration
@Inject protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> registryInstance
public int getPrecedence()
getPrecedence
in interface Sortable
public void destroyInstance(org.openqa.selenium.firefox.FirefoxDriver instance)
destroyInstance
in interface Destructor<org.openqa.selenium.firefox.FirefoxDriver>
public org.openqa.selenium.firefox.FirefoxDriver createInstance(WebDriverConfiguration configuration)
createInstance
in interface Instantiator<org.openqa.selenium.firefox.FirefoxDriver,WebDriverConfiguration>
public org.openqa.selenium.Capabilities getCapabilities(WebDriverConfiguration configuration, boolean performValidations)
Capabilities
instance with set all necessary properties.
It also validates whether the defined firefox_binary or 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 metconfiguration
- 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 metCapabilities
instance with set all necessary properties; if set to true the IllegalArgumentException
can be thrown in case when requirements are not metprotected String getDriverReadableName()
public WebDriverConfiguration createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, DronePoint<T> dronePoint)
createConfiguration
in interface Configurator<T extends org.openqa.selenium.WebDriver,WebDriverConfiguration>
Copyright © 2017 JBoss by Red Hat. All rights reserved.