Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webdriverjs

Package Overview
Dependencies
Maintainers
4
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdriverjs - npm Package Compare versions

Comparing version 0.7.13 to 0.7.14

2

lib/commands/call.js
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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc