public class RemoteWebDriverProvider extends DelegatingWebDriverProvider
Provides a RemoteWebDriver
that connects to a URL specified by system
property "REMOTE_WEBDRIVER_URL" and allows to take screenshots.
The default DesiredCapabilities
, specified by
makeDesiredCapabilities()
, are for Windows Firefox 3.6 allowing
screenshots.
Modifier and Type | Class and Description |
---|---|
static class |
RemoteWebDriverProvider.SauceLabsJobHasEnded |
DelegatingWebDriverProvider.DelegateWebDriverNotFound
delegate
Constructor and Description |
---|
RemoteWebDriverProvider()
With default capabilities
|
RemoteWebDriverProvider(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities) |
Modifier and Type | Method and Description |
---|---|
URL |
createRemoteURL() |
protected String |
getBrowserVersion()
Get the default browser version for use on the Remote system.
|
void |
initialize() |
protected org.openqa.selenium.remote.DesiredCapabilities |
makeDesiredCapabilities()
Default Desired Capabilities: Any-Platform,
Any Firefox Version, unless something is specified via a system-property "browser.version"
and 'Takes Screen-Shot'
|
void |
useVerbosity(boolean verbose) |
protected org.openqa.selenium.remote.CommandExecutor |
wrapCommandExecutor(org.openqa.selenium.remote.CommandExecutor commandExecutor)
Override this to instrument CommandExecutor
|
end, get, saveScreenshotTo
public RemoteWebDriverProvider()
makeDesiredCapabilities()
public RemoteWebDriverProvider(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
protected org.openqa.selenium.remote.DesiredCapabilities makeDesiredCapabilities()
protected String getBrowserVersion()
public void initialize()
protected org.openqa.selenium.remote.CommandExecutor wrapCommandExecutor(org.openqa.selenium.remote.CommandExecutor commandExecutor)
commandExecutor
- a CommandExecutor that communicates over the wire.public URL createRemoteURL() throws MalformedURLException
MalformedURLException
public void useVerbosity(boolean verbose)
Copyright © 2017. All rights reserved.