UNPKG

appium-remote-debugger

Version:
24 lines 1.17 kB
import type { RemoteDebugger } from '../remote-debugger'; import type { Rect } from '@appium/types'; /** * Options for capturing a screenshot. */ export interface ScreenshotCaptureOptions { /** The rectangle to capture. If null, captures the whole viewport. */ rect?: Rect | null; /** The coordinate system to use for the rectangle. */ coordinateSystem?: 'Viewport' | 'Page'; } /** * Captures a screenshot of a rectangular area of the page or the entire viewport. * If no rectangle is provided, captures the full viewport by default. * * @param opts - Screenshot capture options. If not provided, captures the entire viewport. * - rect: The rectangle to capture. If null, captures the whole viewport. * - coordinateSystem: The coordinate system to use ('Viewport' or 'Page'). * Defaults to 'Viewport'. * @returns A promise that resolves to a base64-encoded string of the screenshot * (without the data URL prefix). */ export declare function captureScreenshot(this: RemoteDebugger, opts?: ScreenshotCaptureOptions): Promise<string>; //# sourceMappingURL=screenshot.d.ts.map