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

@types/selenium-webdriver

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/selenium-webdriver - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

103

selenium-webdriver/lib/by.d.ts

@@ -1,2 +0,2 @@

import { Locator, WebDriver } from '../';
import { Locator, WebDriver, WebElement } from '../';

@@ -108,2 +108,4 @@ /**

toObject(): Object;
/** @override */

@@ -114,2 +116,60 @@ toString(): string;

/**
* Describes a mechanism for locating an element relative to others
* on the page.
* @final
*/
export class RelativeBy {
/**
* @param {By} findDetails
* @param {Array<Object>} filters
*/
constructor(findDetails: By, filters: Object[]);
/**
* Look for elements above the root element passed in
* @param {string|WebElement} locatorOrElement
* @return {!RelativeBy} Return this object
*/
above(locatorOrElement: Locator | WebElement): RelativeBy;
/**
* Look for elements below the root element passed in
* @param {Locator|WebElement} locatorOrElement
* @return {!RelativeBy} Return this object
*/
below(locatorOrElement: Locator | WebElement): RelativeBy;
/**
* Look for elements left the root element passed in
* @param {Locator|WebElement} locatorOrElement
* @return {!RelativeBy} Return this object
*/
toLeftOf(locatorOrElement: Locator | WebElement): RelativeBy;
/**
* Look for elements right the root element passed in
* @param {Locator|WebElement} locatorOrElement
* @return {!RelativeBy} Return this object
*/
toRightOf(locatorOrElement: Locator | WebElement): RelativeBy;
/**
* Look for elements near the root element passed in
* @param {Locator|WebElement} locatorOrElement
* @return {!RelativeBy} Return this object
*/
near(locatorOrElement: Locator | WebElement): RelativeBy;
/**
* Returns a marshalled version of the {@link RelativeBy}
* @return {!Object} Object representation of a {@link WebElement}
* that will be used in {@link #findElements}.
*/
marshall(): Object;
/** @override */
toString(): string;
}
/**
* Short-hand expressions for the primary element locator strategies.

@@ -137,5 +197,3 @@ * For example the following two statements are equivalent:

export type ByHash =
| {
className: string;
}
| { className: string }
| { css: string }

@@ -150,2 +208,37 @@ | { id: string }

export function checkedLocator(locator: Locator): By;
/**
* Checks if a value is a valid locator.
* @param {!(By|Function|ByHash)} locator The value to check.
* @return {!(By|Function)} The valid locator.
* @throws {TypeError} If the given value does not define a valid locator
* strategy.
*/
export function checkedLocator(locator: Locator): By | Function;
/**
* Start searching for relative objects using search criteria with By.
* @param {Locator} by A By map that shows how to find the initial element
* @returns {RelativeBy} RelativeBy instance
*/
export function locateWith(by: Locator): RelativeBy;
/**
* Start Searching for relative objects using the value returned from
* `By.tagName()`.
*
* Note: this method will likely be removed in the future please use
* `locateWith`.
* @param {By} tagName The value returned from calling By.tagName()
* @returns {RelativeBy} RelativeBy instance
*/
export function withTagName(tagName: By): RelativeBy;
/**
* Escapes a CSS string.
* @param {string} css the string to escape.
* @return {string} the escaped string.
* @throws {TypeError} if the input value is not a string.
* @throws {InvalidCharacterError} if the string contains an invalid character.
* @see https://drafts.csswg.org/cssom/#serialize-an-identifier
*/
export function escapeCss(css: string): string;

9

selenium-webdriver/package.json
{
"name": "@types/selenium-webdriver",
"version": "4.1.0",
"version": "4.1.1",
"description": "TypeScript definitions for Selenium WebDriverJS",

@@ -57,2 +57,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/selenium-webdriver",

"githubUsername": "1pete"
},
{
"name": "Harmandeep Singh",
"url": "https://github.com/SinghHrmn",
"githubUsername": "SinghHrmn"
}

@@ -71,4 +76,4 @@ ],

},
"typesPublisherContentHash": "df8b641f8b8101f584302cca1fa04144a0f44fcd4d5c463952fa6e595efd2dbe",
"typesPublisherContentHash": "fe46c31dbd03ff1565565e42137c2eb4b44d319b6440cd03f410660a6a879ec8",
"typeScriptVersion": "3.9"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 12 May 2022 18:01:35 GMT
* Last updated: Fri, 27 May 2022 18:31:31 GMT
* Dependencies: [@types/ws](https://npmjs.com/package/@types/ws)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Bill Armstrong](https://github.com/BillArmstrong), [Yuki Kokubun](https://github.com/Kuniwak), [Craig Nishina](https://github.com/cnishina), [Simon Gellis](https://github.com/SupernaviX), [Ben Dixon](https://github.com/bendxn), [Ziyu](https://github.com/oddui), [Johann Wolf](https://github.com/beta-vulgaris), [Aleksey Chemakin](https://github.com/Dzenly), [David Burns](https://github.com/AutomatedTester), and [Pirasis Leelatanon](https://github.com/1pete).
These definitions were written by [Bill Armstrong](https://github.com/BillArmstrong), [Yuki Kokubun](https://github.com/Kuniwak), [Craig Nishina](https://github.com/cnishina), [Simon Gellis](https://github.com/SupernaviX), [Ben Dixon](https://github.com/bendxn), [Ziyu](https://github.com/oddui), [Johann Wolf](https://github.com/beta-vulgaris), [Aleksey Chemakin](https://github.com/Dzenly), [David Burns](https://github.com/AutomatedTester), [Pirasis Leelatanon](https://github.com/1pete), and [Harmandeep Singh](https://github.com/SinghHrmn).

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