flagpole
Version:
Simple and fast DOM integration, headless or headful browser, and REST API testing framework.
26 lines (25 loc) • 857 B
TypeScript
import { iResponse, GenericResponse, NormalizedResponse, ResponseType } from "./response";
import { Scenario } from "./scenario";
import { Value } from './value';
export interface ImageProperties {
width: number;
height: number;
type: string;
mime: string;
wUnits: string;
hUnits: string;
length: number;
url: string;
}
export declare class ImageResponse extends GenericResponse implements iResponse {
protected imageProperties: ImageProperties;
readonly length: Value;
readonly url: Value;
readonly path: Value;
readonly type: ResponseType;
readonly typeName: string;
constructor(scenario: Scenario, response: NormalizedResponse);
evaluate(context: any, callback: Function): Promise<any>;
find(propertyName: string): Promise<Value>;
findAll(propertyName: string): Promise<Value[]>;
}