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

Commit

Permalink
fix(config): add sauceAgent property to protractor config
Browse files Browse the repository at this point in the history
Closes #2040
  • Loading branch information
Sergii Naumov authored and juliemr committed Apr 16, 2015
1 parent fa699b8 commit fda3236
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/referenceConf.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ exports.config = {
// The tests will be run remotely using Sauce Labs.
sauceUser: null,
sauceKey: null,
// Use sauceAgent if you need customize agent for https connection to
// saucelabs.com (i.e. your computer behind corporate proxy)
sauceAgent: null,
// Use sauceSeleniumAddress if you need to customize the URL Protractor
// uses to connect to sauce labs (for example, if you are tunneling selenium
// traffic through a sauce connect tunnel). Default is
Expand Down
3 changes: 2 additions & 1 deletion lib/driverProviders/sauce.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ SauceDriverProvider.prototype.setupEnv = function() {
var deferred = q.defer();
this.sauceServer_ = new SauceLabs({
username: this.config_.sauceUser,
password: this.config_.sauceKey
password: this.config_.sauceKey,
agent: this.config_.sauceAgent
});
this.config_.capabilities.username = this.config_.sauceUser;
this.config_.capabilities.accessKey = this.config_.sauceKey;
Expand Down

0 comments on commit fda3236

Please sign in to comment.