January 2018
Beginner to intermediate
354 pages
7h 59m
English
The Sauce Labs Test Cloud is another Selenium Grid in the cloud. With that, it requires some changes to the Selenium Driver class that was built in this framework. The types of changes required are for the remote hub URL, the sauce-specific desired capabilities, and any browser or mobile device options to set up the driver.
Here are a few code samples of some of the changes that would go into an environment section of the driver class called saucelabs instead of local or remote:
// section in CreateDriver.java class for saucelabs URLString remoteHubURL = null;String SAUCE_USERNAME = "xyz";String SAUCE_ACCESS_KEY = "XYZ";if ( environment.equalsIgnoreCase("saucelabs") ) { if ( System.getenv("SAUCE_USERNAME") != null && ...
Read now
Unlock full access