UNPKG

flagpole

Version:

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

25 lines (24 loc) 1.36 kB
import { ExtJsComponent } from "./extjscomponent"; import { ResponseType } from "../enums"; import { iResponse, iScenario, FindOptions, FindAllOptions, iValue } from "../interfaces"; import { PuppeteerResponse } from "./puppeteerresponse"; import { EvaluateFn } from "puppeteer-core"; export declare class ExtJSResponse extends PuppeteerResponse implements iResponse { get responseTypeName(): string; get responseType(): ResponseType; constructor(scenario: iScenario); findXPath(xPath: string): Promise<iValue>; findAllXPath(xPath: string): Promise<iValue[]>; waitForExists(path: string, timeout?: number): Promise<iValue>; type(selector: string, textToType: string, opts?: any): Promise<any>; clear(selector: string): Promise<any>; getComponentById(id: string): Promise<ExtJsComponent | null>; protected _getComponent(js: EvaluateFn<any>, name: string, path: string): Promise<iValue | ExtJsComponent>; private _injectScript; find(selector: string, a?: string | RegExp | FindOptions, b?: FindOptions): Promise<iValue>; findAll(selector: string, a?: string | RegExp | FindAllOptions, b?: FindAllOptions): Promise<iValue[]>; selectOption(selector: string, value: string | string[]): Promise<void>; private _getComponentOrElementFromHandle; private _getComponentFromElementHandle; private _query; }