Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit fda3236

Browse files
Sergii Naumovjuliemr
Sergii Naumov
authored andcommitted
fix(config): add sauceAgent property to protractor config
Closes #2040
1 parent fa699b8 commit fda3236

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/referenceConf.js

+3
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ exports.config = {
5151
// The tests will be run remotely using Sauce Labs.
5252
sauceUser: null,
5353
sauceKey: null,
54+
// Use sauceAgent if you need customize agent for https connection to
55+
// saucelabs.com (i.e. your computer behind corporate proxy)
56+
sauceAgent: null,
5457
// Use sauceSeleniumAddress if you need to customize the URL Protractor
5558
// uses to connect to sauce labs (for example, if you are tunneling selenium
5659
// traffic through a sauce connect tunnel). Default is

lib/driverProviders/sauce.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ SauceDriverProvider.prototype.setupEnv = function() {
5656
var deferred = q.defer();
5757
this.sauceServer_ = new SauceLabs({
5858
username: this.config_.sauceUser,
59-
password: this.config_.sauceKey
59+
password: this.config_.sauceKey,
60+
agent: this.config_.sauceAgent
6061
});
6162
this.config_.capabilities.username = this.config_.sauceUser;
6263
this.config_.capabilities.accessKey = this.config_.sauceKey;

0 commit comments

Comments
 (0)