public class WebDriverFactoryRemote extends Object implements WebDriverFactory
WebDriver (specifically, RemoteWebDriver)
which can drive a browser on a remote machine, part of a
Selenium Grid.
Such a factory needs to know the URL of the hub. Clients may also specify a set of desired capabilities.
The instances of WebDrivers will also feature a LocalFileDetector,
which handles the upload of files from the local machine running the tests
to the selenium node running the browser.
| Constructor and Description |
|---|
WebDriverFactoryRemote(URL hubURL)
A factory creating
WebDrivers against the given hub. |
WebDriverFactoryRemote(URL hubURL,
org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
A factory creating
WebDrivers matching the given set of extra,
desired capabilities
(see also RemoteWebDriver.RemoteWebDriver(URL, Capabilities, Capabilities)). |
| Modifier and Type | Method and Description |
|---|---|
org.openqa.selenium.WebDriver |
getWebDriver(SupportedBrowser browserType) |
public WebDriverFactoryRemote(URL hubURL, org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
WebDrivers matching the given set of extra,
desired capabilities
(see also RemoteWebDriver.RemoteWebDriver(URL, Capabilities, Capabilities)).hubURL - desiredCapabilities - IllegalArgumentException - if the desired capabilities specify
a CapabilityType.BROWSER_NAMEpublic WebDriverFactoryRemote(URL hubURL)
WebDrivers against the given hub.hubURL - public org.openqa.selenium.WebDriver getWebDriver(SupportedBrowser browserType)
getWebDriver in interface WebDriverFactoryWebDriver according to the parameterCopyright © 2015. All rights reserved.