flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
15 lines (14 loc) • 1.34 kB
TypeScript
import { JSHandle, Page, EvaluateFn } from "puppeteer-core";
import { iAssertionContext, iValue } from "../interfaces";
export declare function jsHandleArrayToHandles(results: JSHandle): Promise<JSHandle<any>[]>;
export declare function jsHandleArrayToComponents(results: JSHandle, context: iAssertionContext, name: string, path: string): Promise<iValue[]>;
export declare function filter(jsHandleArray: JSHandle, filterFunction: EvaluateFn, ...args: any[]): Promise<JSHandle[]>;
export declare function query(page: Page, selector: string): Promise<JSHandle<any>>;
export declare function queryWithinComponent(component: JSHandle, selector: string): Promise<JSHandle<any>>;
export declare function id(component: JSHandle): Promise<JSHandle<any>>;
export declare function down(context: JSHandle, selector: string): Promise<JSHandle<any>>;
export declare function child(context: JSHandle, selector: string): Promise<JSHandle<any>>;
export declare function up(context: JSHandle, selector: string): Promise<JSHandle<any>>;
export declare function parent(context: JSHandle): Promise<JSHandle<any>>;
export declare function ancestors(context: JSHandle, selector: string): Promise<JSHandle<any>>;
export declare function jsHandleToComponent(handle: JSHandle<any> | null, context: iAssertionContext, name: string, path: string): Promise<iValue>;