public class PhantomJSDriverFactory extends Object implements Configurator<org.openqa.selenium.phantomjs.PhantomJSDriver,WebDriverConfiguration>, Instantiator<org.openqa.selenium.phantomjs.PhantomJSDriver,WebDriverConfiguration>, Destructor<org.openqa.selenium.phantomjs.PhantomJSDriver>
Modifier and Type | Field and Description |
---|---|
protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> |
registryInstance |
Constructor and Description |
---|
PhantomJSDriverFactory() |
Modifier and Type | Method and Description |
---|---|
WebDriverConfiguration |
createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor,
DronePoint<T> dronePoint) |
org.openqa.selenium.phantomjs.PhantomJSDriver |
createInstance(WebDriverConfiguration configuration) |
void |
destroyInstance(org.openqa.selenium.phantomjs.PhantomJSDriver instance) |
org.openqa.selenium.Capabilities |
getCapabilities(WebDriverConfiguration configuration,
boolean performValidations)
Returns a
Capabilities instance with set all necessary properties (ie: phantomjs.binary.path). |
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.phantomjs.PhantomJSDriver instance)
destroyInstance
in interface Destructor<org.openqa.selenium.phantomjs.PhantomJSDriver>
public org.openqa.selenium.phantomjs.PhantomJSDriver createInstance(WebDriverConfiguration configuration)
createInstance
in interface Instantiator<org.openqa.selenium.phantomjs.PhantomJSDriver,WebDriverConfiguration>
public org.openqa.selenium.Capabilities getCapabilities(WebDriverConfiguration configuration, boolean performValidations)
Capabilities
instance with set all necessary properties (ie: phantomjs.binary.path).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 metCapabilities
instance with set all necessary properties.protected 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.