webdriverjs
Advanced tools
Comparing version 0.6.0 to 0.6.5
@@ -98,2 +98,5 @@ // this is my take on a client for the webdriver | ||
} | ||
if (options && options.username && options.accessKey) { | ||
self._authString = options.username+":"+options.accessKey; | ||
} | ||
@@ -640,2 +643,6 @@ self.protocol = {"direct":{}}; | ||
} | ||
if(this._authString){ | ||
var buf = new Buffer(this._authString); | ||
fullRequestOptions.headers.Authorization = 'Basic '+ buf.toString('base64'); | ||
} | ||
@@ -642,0 +649,0 @@ // we need to set the requests content-length. either from the data that is sent or 0 if nothing is sent |
@@ -5,3 +5,3 @@ { | ||
"tags": ["web", "test", "selenium", "browser", "javascript"], | ||
"version": "0.6.0", | ||
"version": "0.6.5", | ||
"author": "camilo tapia <camilo.tapia@gmail.com>", | ||
@@ -8,0 +8,0 @@ "repository": |
63107
2263