webdriver-sizzle
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -41,11 +41,10 @@ // Generated by CoffeeScript 1.12.7 | ||
one = function(selector) { | ||
var finder, onError; | ||
onError = function(err) { | ||
throw new Error("Selector " + selector + " matches nothing"); | ||
}; | ||
var finder; | ||
finder = function() { | ||
return checkSizzleExists().then(injectSizzleIfMissing, onError).then(function() { | ||
return checkSizzleExists().then(injectSizzleIfMissing).then(function() { | ||
return driver.findElement(selenium.By.js(function(selector) { | ||
return (window.Sizzle(selector) || [])[0]; | ||
}, selector)); | ||
})["catch"](function(err) { | ||
throw new Error("Selector " + selector + " matches nothing"); | ||
}); | ||
@@ -56,11 +55,10 @@ }; | ||
one.all = function(selector) { | ||
var finder, onError; | ||
onError = function(err) { | ||
throw new Error("Selector " + selector + " matches nothing"); | ||
}; | ||
var finder; | ||
finder = function() { | ||
return checkSizzleExists().then(injectSizzleIfMissing, onError).then(function() { | ||
return checkSizzleExists().then(injectSizzleIfMissing).then(function() { | ||
return driver.findElements(selenium.By.js(function(selector) { | ||
return window.Sizzle(selector) || []; | ||
}, selector)); | ||
})["catch"](function(err) { | ||
throw new Error("Selector " + selector + " matches nothing"); | ||
}); | ||
@@ -67,0 +65,0 @@ }; |
{ | ||
"name": "webdriver-sizzle", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "Locate a selenium-webdriver element by sizzle CSS selector", | ||
@@ -5,0 +5,0 @@ "author": "Good Eggs <open-source@goodeggs.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
33077
119