flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
23 lines (22 loc) • 1.52 kB
TypeScript
import { iResponse, iValue, FindOptions, FindAllOptions } from "../interfaces";
import { PuppeteerResponse } from "./puppeteerresponse";
import { BrowserElement } from "./browserelement";
import { ValuePromise } from "../value-promise";
import { ScenarioType } from "../scenario-types";
export declare class BrowserResponse extends PuppeteerResponse implements iResponse {
get responseTypeName(): string;
get responseType(): ScenarioType;
find(selector: string, a?: string | RegExp | FindOptions, b?: FindOptions): ValuePromise;
findAll(selector: string, a?: string | RegExp | FindAllOptions, b?: FindAllOptions): Promise<iValue[]>;
findXPath(xPath: string): Promise<iValue>;
findAllXPath(xPath: string): Promise<BrowserElement[]>;
waitForHidden(selector: string, timeout?: number): Promise<BrowserElement>;
waitForVisible(selector: string, timeout?: number): Promise<BrowserElement>;
waitForExists(selector: string, timeout?: number): Promise<iValue>;
waitForExists(selector: string, contains: string | RegExp, timeout?: number): Promise<iValue>;
waitForXPath(xPath: string, timeout?: number): Promise<BrowserElement>;
waitForHavingText(selector: string, text: string | RegExp, timeout?: number): Promise<iValue>;
waitForNotExists(selector: string, timeout?: number): Promise<iValue>;
waitForNotExists(selector: string, contains: string | RegExp, timeout?: number): Promise<iValue>;
selectOption(selector: string, value: string | string[]): Promise<void>;
}