Class RemoteWebDriverFactory
java.lang.Object
org.jboss.arquillian.drone.webdriver.factory.RemoteWebDriverFactory
- All Implemented Interfaces:
Configurator<org.openqa.selenium.remote.RemoteWebDriver,,WebDriverConfiguration> Destructor<org.openqa.selenium.remote.RemoteWebDriver>,Instantiator<org.openqa.selenium.remote.RemoteWebDriver,,WebDriverConfiguration> Sortable
public class RemoteWebDriverFactory
extends Object
implements Configurator<org.openqa.selenium.remote.RemoteWebDriver,WebDriverConfiguration>, Instantiator<org.openqa.selenium.remote.RemoteWebDriver,WebDriverConfiguration>, Destructor<org.openqa.selenium.remote.RemoteWebDriver>
- Author:
- Karel Piwko, Jan Papousek, Lukas Fryc
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected 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.remote.RemoteWebDriver> dronePoint) org.openqa.selenium.remote.RemoteWebDrivercreateInstance(WebDriverConfiguration configuration) protected org.openqa.selenium.remote.RemoteWebDrivercreateRemoteDriver(URL remoteAddress, org.openqa.selenium.Capabilities capabilities) voiddestroyInstance(org.openqa.selenium.remote.RemoteWebDriver driver) org.openqa.selenium.CapabilitiesgetCapabilities(WebDriverConfiguration configuration, boolean performValidations) Returns aCapabilitiesinstance which is completely same as that one that is contained in the configuration object itself - there is no necessary properties to be set.protected StringintMethods 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
-
registryInstance
@Inject protected org.jboss.arquillian.core.api.Instance<BrowserCapabilitiesRegistry> registryInstance
-
-
Constructor Details
-
RemoteWebDriverFactory
public RemoteWebDriverFactory()
-
-
Method Details
-
getPrecedence
public int getPrecedence()- Specified by:
getPrecedencein interfaceSortable
-
createInstance
public org.openqa.selenium.remote.RemoteWebDriver createInstance(WebDriverConfiguration configuration) - Specified by:
createInstancein interfaceInstantiator<org.openqa.selenium.remote.RemoteWebDriver,WebDriverConfiguration>
-
getCapabilities
public org.openqa.selenium.Capabilities getCapabilities(WebDriverConfiguration configuration, boolean performValidations) Returns aCapabilitiesinstance which is completely same as that one that is contained in the configuration object itself - there is no necessary properties to be set.- 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
Capabilitiesinstance
-
destroyInstance
public void destroyInstance(org.openqa.selenium.remote.RemoteWebDriver driver) - Specified by:
destroyInstancein interfaceDestructor<org.openqa.selenium.remote.RemoteWebDriver>
-
getDriverReadableName
-
createRemoteDriver
protected org.openqa.selenium.remote.RemoteWebDriver createRemoteDriver(URL remoteAddress, org.openqa.selenium.Capabilities capabilities) -
createConfiguration
public WebDriverConfiguration createConfiguration(org.jboss.arquillian.config.descriptor.api.ArquillianDescriptor descriptor, DronePoint<org.openqa.selenium.remote.RemoteWebDriver> dronePoint) - Specified by:
createConfigurationin interfaceConfigurator<T extends org.openqa.selenium.WebDriver,WebDriverConfiguration>
-