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 |
|---|---|
static String |
BROWSER_CAPABILITIES |
static String |
HEADLESS_BROWSER_CAPABILITIES |
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() |
void |
manageChromeHeadless(WebDriverConfiguration configuration,
org.openqa.selenium.chrome.ChromeOptions chromeOptions) |
void |
setChromeOptions(WebDriverConfiguration configuration,
org.openqa.selenium.remote.DesiredCapabilities capabilities) |
public static final String BROWSER_CAPABILITIES
public static final String HEADLESS_BROWSER_CAPABILITIES
@Inject protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> registryInstance
public int getPrecedence()
getPrecedence in interface Sortablepublic 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.public void setChromeOptions(WebDriverConfiguration configuration, org.openqa.selenium.remote.DesiredCapabilities capabilities)
public void manageChromeHeadless(WebDriverConfiguration configuration, org.openqa.selenium.chrome.ChromeOptions chromeOptions)
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 © 2021 JBoss by Red Hat. All rights reserved.