flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
20 lines (19 loc) • 926 B
TypeScript
/// <reference types="cheerio" />
import { HttpResponse } from "./httpresponse";
import { DOMResponse } from "./domresponse";
import { iResponse, iValue } from "./interfaces";
import { ResponseType } from "./enums";
export declare class HtmlResponse extends DOMResponse implements iResponse {
get responseTypeName(): string;
get responseType(): ResponseType;
init(httpResponse: HttpResponse): void;
getRoot(): CheerioStatic;
evaluate(context: any, callback: Function): Promise<any>;
find(path: string): Promise<iValue>;
findAll(path: string): Promise<iValue[]>;
waitForHidden(selector: string, timeout?: number): Promise<iValue>;
waitForVisible(selector: string, timeout?: number): Promise<iValue>;
waitForExists(selector: string, timeout?: number): Promise<iValue>;
type(selector: string, textToType: string, opts?: any): Promise<any>;
clear(selector: string): Promise<any>;
}