New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nightwatch

Package Overview
Dependencies
Maintainers
1
Versions
360
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nightwatch - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

14

lib/api/protocol.js

@@ -156,2 +156,3 @@ module.exports = function(Nightwatch) {

* Search for multiple elements on the page, starting from the document root. The located elements will be returned as a WebElement JSON objects.
* Valid strings to use as locator strategies are: "class name", "css selector", "id", "name", "link text", "partial link text", "tag name", "xpath"
*

@@ -161,3 +162,3 @@ * @link /session/:sessionId/elements

* @param {string} value The search target.
* @param {function} [callback] Optional callback function to be called when the command finishes.
* @param {function} callback Callback function to be invoked with the result when the command finishes.
* @api protocol

@@ -575,7 +576,8 @@ */

* this.demoTest = function (browser) {
* browser.executeAsync(function(data) {
* // resize operation
* return true;
* browser.executeAsync(function(data, done) {
* someAsyncOperation(function() {
* done(true);
* });
* }, [imagedata], function(result) {
* ...
* // ...
* });

@@ -586,3 +588,3 @@ * };

* @link /session/:sessionId/execute_async
* @param {string|function} body The function body to be injected.
* @param {string|function} script The function body to be injected.
* @param {Array} args An array of arguments which will be passed to the function.

@@ -589,0 +591,0 @@ * @param {function} [callback] Optional callback function to be called when the command finishes.

@@ -63,3 +63,3 @@ var path = require('path');

tags = tags.map(function (tag) {
return tag.toLowerCase();
return String(tag).toLowerCase();
});

@@ -69,3 +69,3 @@

.map(function (testTag) {
return testTag.toLowerCase();
return String(testTag).toLowerCase();
})

@@ -72,0 +72,0 @@ .some(function (testTag) {

{
"name": "nightwatch",
"description": "A node.js bindings implementation for selenium 2.0/webdriver",
"version": "0.6.7",
"version": "0.6.8",
"author": {

@@ -6,0 +6,0 @@ "name": "Andrei Rusu",

@@ -43,3 +43,2 @@

var matched = matcher.tags.match(__dirname + '/../../sampletests/tags/sample.js', tags);

@@ -49,3 +48,14 @@

test.done();
}
},
'tag: test matching numeric tags': function (test) {
var tags = ['room', 101];
var testModule = {
tags: ['101']
};
var matched = matcher.tags.checkModuleTags(testModule, tags);
test.ok(matched === true);
test.done();
},
};
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