Socket
Socket
Sign inDemoInstall

webdriver-sizzle

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdriver-sizzle - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

18

lib/webdriver_sizzle.js

@@ -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

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