Skip to content

Commit

Permalink
feat: Enable ability to pass custom capabilities to sauce browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
axemclion committed Nov 25, 2013
1 parent 8245f9d commit 2a2fc71
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@ var SauceLabsBrowser = function(id, args, sauceConnect, /* config.sauceLabs */ c

};

// Adding any other option that was specified in args, but not consumed from above
// Useful for supplying chromeOptions, firefoxProfile, etc.
for (var key in args){
if (typeof options[key] === 'undefined') {
options[key] = args[key];
}
}

url = url + '?id=' + id;

driver = wd.remote('ondemand.saucelabs.com', 80, username, accessKey);
Expand Down

0 comments on commit 2a2fc71

Please sign in to comment.