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

@applitools/types

Package Overview
Dependencies
Maintainers
24
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/types - npm Package Compare versions

Comparing version 1.0.25 to 1.1.0

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Changelog

## 1.1.0 - 2022/3/1
<<<<<<< Updated upstream
- Add support to page coverage by adding `pageId` to `Eyes.check`.
=======
>>>>>>> Stashed changes
- add `waitForSelector` to `SpecDriver` type
- add `WaitOptions` type
## 1.0.25 - 2022/2/15

@@ -8,0 +17,0 @@

2

package.json
{
"name": "@applitools/types",
"version": "1.0.25",
"version": "1.1.0",
"keywords": [

@@ -5,0 +5,0 @@ "applitools",

@@ -38,8 +38,14 @@ /// <reference types="node" />

};
export declare type Selector<TSelector = never> = TSelector | string | {
export declare type WaitOptions = {
state?: 'exist' | 'visible';
interval?: number;
timeout?: number;
};
export declare type CommonSelector<TSelector = never> = {
selector: TSelector | string;
type?: string;
shadow?: Selector<TSelector>;
frame?: Selector<TSelector>;
shadow?: CommonSelector<TSelector> | TSelector | string;
frame?: CommonSelector<TSelector> | TSelector | string;
};
export declare type Selector<TSelector = never> = TSelector | string | CommonSelector<TSelector>;
export interface SpecDriver<TDriver, TContext, TElement, TSelector> {

@@ -63,2 +69,3 @@ isDriver(driver: any): driver is TDriver;

findElements(context: TContext, selector: TSelector, parent?: TElement): Promise<TElement[]>;
waitForSelector?(context: TContext, selector: TSelector, parent?: TElement, options?: WaitOptions): Promise<TElement | null>;
setWindowSize?(driver: TDriver, size: Size): Promise<void>;

@@ -65,0 +72,0 @@ getWindowSize?(driver: TDriver): Promise<Size>;

@@ -44,2 +44,3 @@ import { Selector } from './driver';

accessibilityRegions?: (TRegion | AccessibilityRegion<TRegion>)[];
pageId: string;
};

@@ -46,0 +47,0 @@ export declare type ScreenshotSettings<TElement, TSelector> = {

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