flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
26 lines (25 loc) • 1.44 kB
TypeScript
import { ExtJsComponent } from "./extjscomponent";
import { iResponse, iScenario, FindOptions, FindAllOptions, iValue } from "../interfaces";
import { PuppeteerResponse } from "./puppeteerresponse";
import { EvaluateFn } from "puppeteer-core";
import { ValuePromise } from "../value-promise";
import { ScenarioType } from "../scenario-types";
export declare class ExtJSResponse extends PuppeteerResponse implements iResponse {
get responseTypeName(): string;
get responseType(): ScenarioType;
constructor(scenario: iScenario);
findXPath(xPath: string): Promise<iValue>;
findAllXPath(xPath: string): Promise<iValue[]>;
waitForExists(path: string, a?: number | string | RegExp, b?: 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): ValuePromise;
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;
}