webdriverjs
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -157,2 +157,3 @@ 'use strict'; | ||
var error = null; | ||
var makeError = require('./makeError'); | ||
@@ -169,3 +170,3 @@ if(err || (body && body.status !== 0)) { | ||
if(body) { | ||
error = { | ||
error = makeError({ | ||
status: body.status, | ||
@@ -175,5 +176,5 @@ type: errorCodes[body.status] ? errorCodes[body.status].id : 'unknown', | ||
orgStatusMessage: body.value ? body.value.message : '' | ||
}; | ||
}); | ||
} else { | ||
error = { | ||
error = makeError({ | ||
status: -1, | ||
@@ -183,3 +184,3 @@ type: 'ECONNREFUSED', | ||
orgStatusMessage: 'Couldn\'t connect to selenium server' | ||
}; | ||
}); | ||
// TODO skip rest of driver commands | ||
@@ -186,0 +187,0 @@ return callback(error); |
{ | ||
"name": "webdriverjs", | ||
"description": "A nodejs bindings implementation for selenium 2.0/webdriver", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"homepage": "https://github.com/camme/webdriverjs", | ||
@@ -6,0 +6,0 @@ "author": "camilo tapia <camilo.tapia@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
836653
207
5503