playwright-fluent
Version:
Fluent API around playwright
16 lines (15 loc) • 560 B
TypeScript
import { Page } from 'playwright';
export interface ScreenshotOptions {
fullPage: boolean;
/**
* Hides default white background and allows capturing screenshots with transparency.
* Not applicable to jpeg images.
* Defaults to false.
*
* @type {boolean}
* @memberof ScreenshotOptions
*/
omitBackground: boolean;
}
export declare const defaultFullPageScreenshotOptions: ScreenshotOptions;
export declare function takeFullPageScreenshotAsBase64(page: Page | undefined, options: ScreenshotOptions): Promise<string>;