Skip to content

Commit

Permalink
feat: allow passing additional config options
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Nov 25, 2013
1 parent 9c25b5c commit 1cab110
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ var SauceLabsBrowser = function(id, args, sauceConnect, /* config.sauceLabs */ c
'device-orientation': args.deviceOrientation || null
};

for (var key in args) {
if (!options.hasOwnProperty(key)) {
options[key] = args[key];
}
}

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

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

0 comments on commit 1cab110

Please sign in to comment.