UNPKG

flagpole

Version:

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

26 lines (25 loc) 1.33 kB
import { ExtJsComponent } from "./extjscomponent"; import { ResponseType } from "./enums"; import { iResponse, iScenario, FindOptions, FindAllOptions } from "./interfaces"; import { PuppeteerResponse } from "./puppeteerresponse"; import { iValue } from "."; import { PuppeteerElement } from "./puppeteerelement"; 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<PuppeteerElement[]>; waitForExists(path: string, timeout?: number): Promise<PuppeteerElement>; type(selector: string, textToType: string, opts?: any): Promise<any>; clear(selector: string): Promise<any>; getComponentById(id: string): Promise<ExtJsComponent | null>; 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; private _queryGetHandle; }