public class ChromeDriverFactory extends Object implements Configurator<org.openqa.selenium.chrome.ChromeDriver,WebDriverConfiguration>, Instantiator<org.openqa.selenium.chrome.ChromeDriver,WebDriverConfiguration>, Destructor<org.openqa.selenium.chrome.ChromeDriver>
Modifier and Type | Field and Description |
---|---|
protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> |
registryInstance |
Constructor and Description |
---|
ChromeDriverFactory() |
Modifier and Type | Method and Description |
---|---|
WebDriverConfiguration |
createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor,
DronePoint<org.openqa.selenium.chrome.ChromeDriver> dronePoint) |
org.openqa.selenium.chrome.ChromeDriver |
createInstance(WebDriverConfiguration configuration) |
void |
destroyInstance(org.openqa.selenium.chrome.ChromeDriver instance) |
org.openqa.selenium.Capabilities |
getCapabilities(WebDriverConfiguration configuration,
boolean performValidations)
Returns a
Capabilities instance with set all necessary properties. |
protected String |
getDriverReadableName() |
int |
getPrecedence() |
@Inject protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> registryInstance
public int getPrecedence()
getPrecedence
in interface Sortable
public void destroyInstance(org.openqa.selenium.chrome.ChromeDriver instance)
destroyInstance
in interface Destructor<org.openqa.selenium.chrome.ChromeDriver>
public org.openqa.selenium.chrome.ChromeDriver createInstance(WebDriverConfiguration configuration)
createInstance
in interface Instantiator<org.openqa.selenium.chrome.ChromeDriver,WebDriverConfiguration>
public org.openqa.selenium.Capabilities getCapabilities(WebDriverConfiguration configuration, boolean performValidations)
Capabilities
instance with set all necessary properties.
It also validates if the defined chrome.binary and chromeDriverBinary are executable binaries.
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.protected String getDriverReadableName()
public WebDriverConfiguration createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, DronePoint<org.openqa.selenium.chrome.ChromeDriver> dronePoint)
createConfiguration
in interface Configurator<org.openqa.selenium.chrome.ChromeDriver,WebDriverConfiguration>
Copyright © 2017 JBoss by Red Hat. All rights reserved.