Permalink
Browse files

WD now tries to get sauce creds from env variables

  • Loading branch information...
1 parent c1437e8 commit 0acfb32c3a24641955b1fb2c6338b57a0ad0483d @admc committed Sep 25, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/webdriver.js
  2. +2 −2 package.json
View
@@ -12,8 +12,8 @@ var JSONWIRE_ERRORS = require('./jsonwire-errors.js');
// host,port, username, accessKey
var webdriver = module.exports = function(remoteWdConfig) {
this.sessionID = null;
- this.username = remoteWdConfig.username;
- this.accessKey = remoteWdConfig.accessKey;
+ this.username = remoteWdConfig.username || process.env.SAUCE_USERNAME;
+ this.accessKey = remoteWdConfig.accessKey || process.env.SAUCE_ACCESS_KEY;
this.basePath = (remoteWdConfig.path || '/wd/hub');
this.https = (remoteWdConfig.https || false);
// default
View
@@ -2,7 +2,7 @@
"name" : "wd"
, "description" : "WebDriver/Selenium 2 node.js client"
, "tags" : ["web", "automation", "browser", "javascript"]
- , "version" : "0.0.21"
+ , "version" : "0.0.22"
, "author" : "Adam Christian <adam.christian@gmail.com>"
, "repository" :
{ "type" : "git"
@@ -23,7 +23,7 @@
,"coffee-script": "latest"
,"express": "2.x"
,"gleak": "latest"
- ,"imageinfo": "latest"
+ ,"imageinfo": "latest"
}
, "scripts" : {
"test": "make test_saucelabs"

0 comments on commit 0acfb32

Please sign in to comment.