UNPKG

flagpole

Version:

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

21 lines (20 loc) 1.02 kB
/// <reference types="cheerio" /> import { HTMLElement } from './htmlelement'; import { HttpResponse } from './httpresponse'; import { DOMResponse } from './domresponse'; import { iResponse } from './interfaces'; import { ResponseType } from './enums'; export declare class HtmlResponse extends DOMResponse implements iResponse { readonly responseTypeName: string; readonly responseType: ResponseType; init(httpResponse: HttpResponse): void; getRoot(): CheerioStatic; evaluate(context: any, callback: Function): Promise<any>; find(path: string): Promise<HTMLElement | null>; findAll(path: string): Promise<HTMLElement[]>; waitForHidden(selector: string, timeout?: number): Promise<HTMLElement | null>; waitForVisible(selector: string, timeout?: number): Promise<HTMLElement | null>; waitForExists(selector: string, timeout?: number): Promise<HTMLElement | null>; type(selector: string, textToType: string, opts?: any): Promise<any>; clear(selector: string): Promise<any>; }