UNPKG

flagpole

Version:

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

14 lines (13 loc) 615 B
/// <reference types="cheerio" /> import { Scenario } from "./scenario"; import { iResponse, NormalizedResponse, GenericResponse, ResponseType } from "./response"; import { DOMElement } from './domelement'; export declare class HtmlResponse extends GenericResponse implements iResponse { readonly typeName: string; readonly type: ResponseType; constructor(scenario: Scenario, response: NormalizedResponse); getRoot(): CheerioStatic; evaluate(context: any, callback: Function): Promise<any>; find(path: string): Promise<DOMElement | null>; findAll(path: string): Promise<DOMElement[]>; }