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

@qawolf/types

Package Overview
Dependencies
Maintainers
2
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qawolf/types - npm Package Compare versions

Comparing version 0.7.11 to 0.8.0-alpha.0

28

lib/selector.d.ts
import { Action } from "./common";
export declare type CssSelector = string;
export interface Doc {

@@ -15,11 +14,9 @@ attrs?: any;

}
export interface DocSelectorSerialized {
export declare type DocSelectorSerialized = string | {
ancestors: string[];
node: string;
}
export interface FindElementOptions {
dataAttribute?: string;
};
export interface FindElementOptions extends FindPageOptions {
action?: Action;
sleepMs?: number;
timeoutMs?: number;
waitForRequests?: boolean;
}

@@ -31,10 +28,11 @@ export interface FindPageOptions {

}
export declare type HtmlSelector = string | DocSelector | DocSelectorSerialized;
export interface Selector {
action?: Action;
css?: CssSelector;
html?: HtmlSelector;
text?: string;
page?: number;
value?: any;
export interface CssSelector {
css: string;
}
export interface HtmlSelector {
html: DocSelectorSerialized;
}
export interface TextSelector {
text: string;
}
export declare type Selector = HtmlSelector | CssSelector | TextSelector;
import { Action } from "./common";
import { ScrollValue } from "./event";
import { DocSelector, DocSelectorSerialized, Selector } from "./selector";
export interface Step extends Selector {
import { DocSelector } from "./selector";
export interface Step {
action: Action;

@@ -11,7 +11,2 @@ html: DocSelector;

}
export interface StepSerialized extends Selector {
html: DocSelectorSerialized;
index: number;
page: number;
}
export declare type StepValue = string | ScrollValue | null | undefined;

@@ -18,0 +13,0 @@ export interface Workflow {

{
"name": "@qawolf/types",
"description": "qawolf types",
"version": "0.7.11",
"version": "0.8.0-alpha.0",
"license": "BSD-3.0",

@@ -22,3 +22,3 @@ "main": "./lib/index.js",

},
"gitHead": "b874bee8d48fdadfcfc35fb0083f622074aab8ec"
"gitHead": "50293cfb721b5cb470e81532178bfdb78fbda106"
}
import { Action } from "./common";
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors
export type CssSelector = string;
export interface Doc {

@@ -20,14 +17,14 @@ attrs?: any;

export interface DocSelectorSerialized {
ancestors: string[];
node: string;
}
export type DocSelectorSerialized =
| string
| {
ancestors: string[];
node: string;
};
export interface FindElementOptions {
dataAttribute?: string;
export interface FindElementOptions extends FindPageOptions {
// filter eligible elements by action
action?: Action;
// how long to sleep after finding the element
sleepMs?: number;
// how long to wait for the element
timeoutMs?: number;
waitForRequests?: boolean;
}

@@ -41,11 +38,14 @@

export type HtmlSelector = string | DocSelector | DocSelectorSerialized;
export interface CssSelector {
// https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors
css: string;
}
export interface Selector {
action?: Action;
css?: CssSelector;
html?: HtmlSelector;
text?: string;
page?: number;
value?: any;
export interface HtmlSelector {
html: DocSelectorSerialized;
}
export interface TextSelector {
text: string;
}
export type Selector = HtmlSelector | CssSelector | TextSelector;
import { Action } from "./common";
import { ScrollValue } from "./event";
import { DocSelector, DocSelectorSerialized, Selector } from "./selector";
import { DocSelector } from "./selector";
export interface Step extends Selector {
export interface Step {
action: Action;

@@ -13,8 +13,2 @@ html: DocSelector;

export interface StepSerialized extends Selector {
html: DocSelectorSerialized;
index: number;
page: number;
}
export type StepValue = string | ScrollValue | null | undefined;

@@ -21,0 +15,0 @@

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