@applitools/types
Advanced tools
Comparing version 1.0.25 to 1.1.0
@@ -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 @@ |
{ | ||
"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> = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45336
658