webdriverjs
Advanced tools
Comparing version 0.6.7 to 0.6.8
@@ -7,4 +7,6 @@ exports.command = function(cssSelector, expected, callback) | ||
{ | ||
if (result.indexOf(expected) != -1) | ||
if (result.value.indexOf(expected) != -1) | ||
{ | ||
//theTest, receivedValue, expectedValue, message | ||
self.showTest(result.value === expected, result.value, expected, "Asserting result:`"+result.value+"` is as expected"); | ||
if (typeof callback === "function") | ||
@@ -11,0 +13,0 @@ { |
@@ -30,3 +30,3 @@ var http = require("http"); | ||
{ | ||
request = this.createRequest(commandOptionsGet, this.proxyResponse(callback)); | ||
this.executeProtocolCommand( commandOptionsGet, self.proxyResponse(callback), {}); | ||
} | ||
@@ -46,2 +46,5 @@ else if (doWhat.toLowerCase() === "delete") | ||
); | ||
var data = JSON.stringify({}); | ||
request.write(data); | ||
request.end(); | ||
@@ -55,6 +58,3 @@ } | ||
var data = JSON.stringify({}); | ||
request.write(data); | ||
request.end(); | ||
}; | ||
}; |
@@ -37,3 +37,2 @@ | ||
data = {}; | ||
this.executeProtocolCommand( | ||
@@ -40,0 +39,0 @@ commandOptionsGet, |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "0.6.7", | ||
"version": "0.6.8", | ||
"author": "camilo tapia <camilo.tapia@gmail.com>", | ||
@@ -14,0 +14,0 @@ "contributors": [ |
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
65622
2353
32