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

leadfoot

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

leadfoot - npm Package Compare versions

Comparing version 1.5.2 to 1.6.0-rc.1

lib/findDisplayed.js

12

Command.js

@@ -294,2 +294,11 @@ /**

* @borrows module:leadfoot/Session#findAllByXpath as module:leadfoot/Command#findAllByXpath
* @borrows module:leadfoot/Session#findDisplayed as module:leadfoot/Command#findDisplayed
* @borrows module:leadfoot/Session#findDisplayedByClassName as module:leadfoot/Command#findDisplayedByClassName
* @borrows module:leadfoot/Session#findDisplayedByCssSelector as module:leadfoot/Command#findDisplayedByCssSelector
* @borrows module:leadfoot/Session#findDisplayedById as module:leadfoot/Command#findDisplayedById
* @borrows module:leadfoot/Session#findDisplayedByName as module:leadfoot/Command#findDisplayedByName
* @borrows module:leadfoot/Session#findDisplayedByLinkText as module:leadfoot/Command#findDisplayedByLinkText
* @borrows module:leadfoot/Session#findDisplayedByPartialLinkText as module:leadfoot/Command#findDisplayedByPartialLinkText
* @borrows module:leadfoot/Session#findDisplayedByTagName as module:leadfoot/Command#findDisplayedByTagName
* @borrows module:leadfoot/Session#findDisplayedByXpath as module:leadfoot/Command#findDisplayedByXpath
* @borrows module:leadfoot/Session#waitForDeletedByClassName as module:leadfoot/Command#waitForDeletedByClassName

@@ -573,3 +582,4 @@ * @borrows module:leadfoot/Session#waitForDeletedByCssSelector as module:leadfoot/Command#waitForDeletedByCssSelector

find: createElementMethod('find'),
findAll: createElementMethod('findAll')
findAll: createElementMethod('findAll'),
findDisplayed: createElementMethod('findDisplayed')
};

@@ -576,0 +586,0 @@

@@ -7,2 +7,3 @@ /* global window:false */

var findDisplayed = require('./lib/findDisplayed');
var fs = require('fs');

@@ -624,2 +625,118 @@ var strategies = require('./lib/strategies');

/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given query. This is inherently slower than {@link module:leadfoot/Element#find}, so should only be
* used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayed
* @memberOf module:leadfoot/Element#
* @since 1.6
*
* @param {string} using
* The element retrieval strategy to use. See {@link module:leadfoot/Session#find} for options.
*
* @param {string} value
* The strategy-specific value to search for. See {@link module:leadfoot/Session#find} for details.
*
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given CSS class name. This is inherently slower than {@link module:leadfoot/Element#find}, so should
* only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedByClassName
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} className The CSS class name to search for.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given CSS selector. This is inherently slower than {@link module:leadfoot/Element#find}, so should
* only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedByCssSelector
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} selector The CSS selector to search for.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given ID. This is inherently slower than {@link module:leadfoot/Element#find}, so should
* only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedById
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} id The ID of the element.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given name attribute. This is inherently slower than {@link module:leadfoot/Element#find}, so should
* only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedByName
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} name The name of the element.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given case-insensitive link text. This is inherently slower than {@link module:leadfoot/Element#find},
* so should only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedByLinkText
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} text The link text of the element.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* partially matching the given case-insensitive link text. This is inherently slower than
* {@link module:leadfoot/Element#find}, so should only be used in cases where the visibility of an element cannot be
* ensured in advance.
*
* @method findDisplayedByPartialLinkText
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} text The partial link text of the element.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given HTML tag name. This is inherently slower than {@link module:leadfoot/Element#find}, so should
* only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedByTagName
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} tagName The tag name of the element.
* @returns {Promise.<module:leadfoot/Element>}
*/
/**
* Gets the first {@link module:leadfoot/Element#isDisplayed displayed} element inside this element
* matching the given XPath selector. This is inherently slower than {@link module:leadfoot/Element#find}, so should
* only be used in cases where the visibility of an element cannot be ensured in advance.
*
* @method findDisplayedByXpath
* @memberOf module:leadfoot/Element#
* @since 1.6
* @param {string} path The XPath selector to search for.
* @returns {Promise.<module:leadfoot/Element>}
*/
findDisplayed.applyTo(Element.prototype);
/**
* Waits for all elements inside this element that match the given query to be destroyed.

@@ -626,0 +743,0 @@ *

@@ -27,2 +27,6 @@ var STRATEGIES = [

prototype['findDisplayedBy' + suffix] = function (value) {
return this.findDisplayed(strategy, value);
};
prototype['waitForDeletedBy' + suffix] = function (value) {

@@ -29,0 +33,0 @@ return this.waitForDeleted(strategy, value);

8

package.json
{
"name": "leadfoot",
"version": "1.5.2",
"version": "1.6.0-rc.1",
"description": "Leadfoot. A JavaScript client library that brings cross-platform consistency to the Selenium WebDriver API.",

@@ -9,5 +9,3 @@ "repository": {

},
"licenses": [
{ "type": "BSD-3-Clause", "url": "https://github.com/theintern/leadfoot/blob/master/LICENSE" }
],
"license": "BSD-3-Clause",
"dependencies": {

@@ -18,3 +16,3 @@ "adm-zip": "^0.4.3",

"devDependencies": {
"intern": "2.2.2"
"intern": "3.0.0-rc.2"
},

@@ -21,0 +19,0 @@ "bugs": "https://github.com/theintern/leadfoot/issues",

Sorry, the diff of this file is too big to display

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