@types/selenium-webdriver
Version:
TypeScript definitions for selenium-webdriver
19 lines (12 loc) • 518 B
TypeScript
import { BoxClipRectangle, ElementClipRectangle } from "./clipRectangle";
export const Origin: {
VIEWPORT: "viewport";
DOCUMENT: "document";
};
export class CaptureScreenshotParameters {
#map: Map<string, any>;
origin(origin: "viewport" | "document"): CaptureScreenshotParameters;
imageFormat(type: string, quality?: number): CaptureScreenshotParameters;
clipRectangle(clipRectangle: BoxClipRectangle | ElementClipRectangle): CaptureScreenshotParameters;
asMap(): Map<string, any>;
}