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

@applitools/types

Package Overview
Dependencies
Maintainers
23
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.11 to 1.0.12

5

CHANGELOG.md

@@ -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 @@

2

package.json
{
"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>;

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