@applitools/types
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -6,2 +6,7 @@ # Changelog | ||
## 1.0.12 - 2021/9/6 | ||
- add functionality to find element within an element to `SpecDriver` | ||
- extend `SpecSelector` to support nested structures | ||
## 1.0.11 - 2021/9/1 | ||
@@ -8,0 +13,0 @@ |
{ | ||
"name": "@applitools/types", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "applitools", |
import { MatchLevel, Region, AccessibilityRegionType, AccessibilityGuidelinesVersion, AccessibilityLevel, Proxy } from './data'; | ||
declare type RegionReference<TElement, TSelector> = Region | ElementReference<TElement, TSelector>; | ||
declare type ElementReference<TElement, TSelector> = TElement | TSelector; | ||
import { SpecSelector } from './spec-driver'; | ||
declare type RegionReference<TElement, TSelector> = Region | ElementReference<TElement, TSelector> | SpecSelector<TSelector>; | ||
declare type ElementReference<TElement, TSelector> = TElement | SpecSelector<TSelector>; | ||
declare type FrameReference<TElement, TSelector> = ElementReference<TElement, TSelector> | string | number; | ||
@@ -47,2 +48,3 @@ declare type ContextReference<TElement, TSelector> = { | ||
frames?: (ContextReference<TElement, TSelector> | FrameReference<TElement, TSelector>)[]; | ||
shadow?: SpecSelector<TSelector>; | ||
scrollRootElement?: ElementReference<TElement, TSelector>; | ||
@@ -49,0 +51,0 @@ fully?: boolean; |
/// <reference types="node" /> | ||
import { Size, DriverInfo, Region } from './data'; | ||
export declare type SpecSelector<TSelector> = TSelector | string | { | ||
type: string; | ||
selector: string; | ||
selector: TSelector | string; | ||
type?: string; | ||
shadow?: SpecSelector<TSelector>; | ||
}; | ||
@@ -22,4 +23,4 @@ export interface SpecDriver<TDriver, TContext, TElement, TSelector> { | ||
executeScript(context: TContext, script: ((arg?: any) => any) | string, arg?: any): Promise<any>; | ||
findElement(context: TContext, selector: SpecSelector<TSelector>): Promise<TElement | null>; | ||
findElements(context: TContext, selector: SpecSelector<TSelector>): Promise<TElement[]>; | ||
findElement(context: TContext, selector: SpecSelector<TSelector>, parent?: TElement): Promise<TElement | null>; | ||
findElements(context: TContext, selector: SpecSelector<TSelector>, parent?: TElement): Promise<TElement[]>; | ||
click?(context: TContext, element: TElement | SpecSelector<TSelector>): Promise<void>; | ||
@@ -26,0 +27,0 @@ setWindowSize?(driver: TDriver, size: Size): Promise<void>; |
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
47127
722