webdriverjs
Advanced tools
Comparing version 0.7.13 to 0.7.14
exports.command = function(callback) { | ||
if (typeof callback === "function") { | ||
callback(); | ||
setTimeout(callback, 0); | ||
} | ||
}; |
@@ -133,3 +133,4 @@ /** | ||
type: errorCodes[result.status].id, | ||
orgStatusMessage: errorCodes[result.status].message | ||
message : errorCodes[result.status].message, | ||
orgStatusMessage: result.value.message | ||
}; | ||
@@ -150,3 +151,4 @@ result.value = -1; | ||
type: errorCodes[result.status].id, | ||
orgStatusMessage: errorCodes[result.status].message | ||
message : errorCodes[result.status].message, | ||
orgStatusMessage: result.value.message | ||
}; | ||
@@ -247,2 +249,2 @@ | ||
module.exports = log; | ||
module.exports = log; |
{ | ||
"name": "webdriverjs", | ||
"description": "A nodejs bindings implementation for selenium 2.0/webdriver", | ||
"version": "0.7.13", | ||
"version": "0.7.14", | ||
"homepage": "https://github.com/camme/webdriverjs", | ||
@@ -6,0 +6,0 @@ "author": "camilo tapia <camilo.tapia@gmail.com>", |
@@ -869,2 +869,82 @@ /* jshint -W024 */ | ||
it('should execute all commands in right order (asynchronous execution test)', function(done) { | ||
var result = ''; | ||
client | ||
.url(testpageURL) | ||
.click('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += '1'; | ||
}) | ||
.isVisible('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += '2'; | ||
}) | ||
.call(function() { | ||
result += '3'; | ||
client.click('.btn1',function(err) { | ||
expect(err).to.be.null; | ||
result += '4'; | ||
client.isVisible('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += '5'; | ||
}) | ||
.call(function() { | ||
result += '6'; | ||
client.call(function() { | ||
result += '7'; | ||
client.doubleClick('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += '8'; | ||
client.call(function() { | ||
result += '9'; | ||
client.isVisible('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += '0'; | ||
setTimeout(function() { | ||
client.call(function() { | ||
result += 'a'; | ||
}); | ||
},1000); | ||
}); | ||
}); | ||
}) | ||
.click('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += 'b'; | ||
}); | ||
}); | ||
}) | ||
.click('.btn1', function() { | ||
result += 'c'; | ||
}) | ||
.call(function() { | ||
result += 'd'; | ||
client.isVisible('.btn1', function(err) { | ||
expect(err).to.be.null; | ||
result += 'e'; | ||
}); | ||
}); | ||
}) | ||
.buttonClick(function(err) { | ||
expect(err).to.be.null; | ||
result += 'f'; | ||
}) | ||
.call(function() { | ||
assert(result,'1234567890abcdef'); | ||
done(); | ||
}); | ||
}); | ||
}); | ||
}); | ||
@@ -871,0 +951,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
149999
3033
4