Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions lib/driverProviders/sauce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,13 @@ export class Sauce extends DriverProvider {
agent: this.config_.sauceAgent,
proxy: this.config_.webDriverProxy
});
this.config_.capabilities['username'] = this.config_.sauceUser;
this.config_.capabilities['accessKey'] = this.config_.sauceKey;
this.config_.capabilities['build'] = this.config_.sauceBuild;

// Avoid unexpected behavior if users set build capability as supposed,
// but don't break legacy code using config_.sauceBuild.
if (!this.config_.capabilities['build'] && this.config_.sauceBuild) {
this.config_.capabilities['build'] = this.config_.sauceBuild;
}

let protocol = this.config_.sauceSeleniumUseHttp ? 'http://' : 'https://';
let auth = protocol + this.config_.sauceUser + ':' + this.config_.sauceKey + '@';
this.config_.seleniumAddress = auth +
Expand Down