flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
21 lines (20 loc) • 990 B
TypeScript
/// <reference types="cheerio" />
import { HttpResponse } from "../httpresponse";
import { DOMResponse } from "./domresponse";
import { iResponse, iValue, FindAllOptions, FindOptions } from "../interfaces";
import { ValuePromise } from "../value-promise";
import { ScenarioType } from "../scenario-types";
export declare class HtmlResponse extends DOMResponse implements iResponse {
private _cheerio;
protected set cheerio(value: cheerio.Root);
protected get cheerio(): cheerio.Root;
get responseTypeName(): string;
get responseType(): ScenarioType;
init(httpResponse: HttpResponse): void;
getRoot(): cheerio.Root;
eval(): Promise<any>;
find(selector: string, a?: string | RegExp | FindOptions, b?: FindOptions): ValuePromise;
findAll(selector: string, a?: string | RegExp | FindAllOptions, b?: FindAllOptions): Promise<iValue[]>;
type(selector: string, textToType: string, opts?: any): Promise<any>;
clear(selector: string): Promise<any>;
}