org.jbehave.web.selenium
Class SauceWebDriverProvider
java.lang.Object
org.jbehave.web.selenium.DelegatingWebDriverProvider
org.jbehave.web.selenium.RemoteWebDriverProvider
org.jbehave.web.selenium.SauceWebDriverProvider
- All Implemented Interfaces:
- WebDriverProvider
public class SauceWebDriverProvider
- extends RemoteWebDriverProvider
Allows to connect to Sauce Labs to run
Selenium tests in the cloud. Requires Sauce credentials, username and access key, which
can be provided via system properties "SAUCE_USERNAME" and "SAUCE_ACCESS_KEY".
Firefox on Windows is the default browser choice. This is done via DesiredCapabilities
passed in through the constructor. Like so -
DesiredCapabilities desiredCapabilities = DesiredCapabilities.firefox();
desiredCapabilities.setVersion("3.6.");
desiredCapabilities.setPlatform(Platform.WINDOWS);
desiredCapabilities.setCapability(CapabilityType.TAKES_SCREENSHOT, true);
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SauceWebDriverProvider
public SauceWebDriverProvider(org.openqa.selenium.remote.DesiredCapabilities desiredCapabilities)
- Parameters:
desiredCapabilities -
SauceWebDriverProvider
public SauceWebDriverProvider()
createRemoteURL
public URL createRemoteURL()
throws MalformedURLException
- Overrides:
createRemoteURL in class RemoteWebDriverProvider
- Throws:
MalformedURLException
getSauceUser
public static String getSauceUser()
getSauceAccessKey
public static String getSauceAccessKey()
getSauceCredentials
public static String getSauceCredentials()
Copyright © 2011. All Rights Reserved.