UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

16 lines (15 loc) 821 B
import { iValue, iAssertionContext } from "./interfaces"; import { JSHandle, ElementHandle, EvaluateFn, Page } from "puppeteer-core"; import { DOMElement } from "./domelement"; export declare abstract class PuppeteerElement extends DOMElement implements iValue { protected abstract _input: ElementHandle | JSHandle; abstract get $(): ElementHandle | JSHandle; protected get _page(): Page; protected constructor(input: JSHandle | ElementHandle, context: iAssertionContext, name: string, path?: string); toString(): string; clearThenType(textToType: string, opts?: any): Promise<void>; eval(js: string): Promise<any>; protected _getSourceCode(): Promise<string>; protected _eval(js: EvaluateFn<any>, arg?: any): Promise<any>; protected _getProperty(key: string): Promise<unknown>; }