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

@flood/chrome

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flood/chrome - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

65

index.d.ts

@@ -41,4 +41,5 @@ // Type definitions for @flood/browser-test 0.1.0

*/
export declare function test(options: TestOptions, fn: () => void)
export declare function test(fn: () => void)
export declare function test(options: TestOptions, fn: () => void)
export declare function test(any)

@@ -75,9 +76,2 @@ /**

/**
* Returns a Promise which resolves when the first promise in `...promises` resolves.
*
* @param {...Promise[]} promises
*/
public race(...promises)
/**
* Creates a waiter, which accepts any wait arguments. This essentially creates a

@@ -123,2 +117,7 @@ * Promise which will resolve when the condition is met, or reject when it times out.

public findElement(Locator: Locator): Promise<ElementHandle>
public findElements(Locator: Locator): Promise<ElementHandle[]>
public wait(waiter: Conditional): Promise<any>
public findElementWithText(selector: string, text: string): Promise<any>

@@ -137,1 +136,51 @@ }

}
declare class Conditional {}
declare class Locator {}
declare class By extends Locator {
static className(className: string): Locator
static css(seelctor: string): Locator
static id(id: string): Locator
static js(func: () => ElementHandle): Locator
static linkText(text: string): Locator
static partialLinkText(text: string): Locator
static name(name: string): Locator
static attr(tagName: string, attrName: string, attrValue?: string): Locator
static xpath(path: string): Locator
}
declare class Until extends Conditional {
static ableToSwitchToFrame(): Conditional
static alertIsPresent(alertText: string): Conditional
static elementIsDisabled(selectorOrLocator: Locator | string): Conditional
static elementIsEnabled(selectorOrLocator: Locator | string): Conditional
static elementIsSelected(selectorOrLocator: Locator | string): Conditional
static elementIsNotSelected(selectorOrLocator: Locator | string): Conditional
static elementIsVisible(selectorOrLocator: Locator | string): Conditional
static elementIsNotVisible(selectorOrLocator: Locator | string): Conditional
static elementLocated(selectorOrLocator: Locator | string): Conditional
static elementTextContains(selectorOrLocator: Locator | string, text: string): Conditional
static elementTextIs(selectorOrLocator: Locator | string, text: string): Conditional
static elementTextMatches(selectorOrLocator: Locator | string, regex: RegExp): Conditional
/**
* Creates a condition that will loop until at least one element is found with the given locator.
*/
static elementsLocated(selectorOrLocator: Locator | string): Conditional
/**
* Creates a condition that will wait for the given element to become stale.
* An element is considered stale once it is removed from the DOM, or a new page has loaded.
*/
static stalenessOf(selectorOrLocator: Locator | string): Conditional
static titleContains(title: string): Conditional
static titleIs(title: string): Conditional
static titleMatches(title: RegExp): Conditional
static urlContains(url: string): Conditional
static urlIs(url: string): Conditional
static urlMatches(url: RegExp): Conditional
}

2

package.json
{
"name": "@flood/chrome",
"version": "0.1.3",
"version": "0.1.4",
"private": false,

@@ -5,0 +5,0 @@ "description": "Flood Chrome provides an API for scripting Browser Level Load Tests",

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