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 WebDriver
s 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
WebDriver s against the given hub. |
WebDriverFactoryRemote(URL hubURL,
org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
A factory creating
WebDriver s 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)
WebDriver
s 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_NAME
public WebDriverFactoryRemote(URL hubURL)
WebDriver
s against the given hub.hubURL
- public org.openqa.selenium.WebDriver getWebDriver(SupportedBrowser browserType)
getWebDriver
in interface WebDriverFactory
WebDriver
according to the parameterCopyright © 2015. All rights reserved.