Skip to main content
Version: 21.11.0

Page.screenshot() method

Signature:

class Page {
screenshot(options?: Readonly<ScreenshotOptions>): Promise<Buffer>;
}

Parameters

ParameterTypeDescription
optionsReadonly<ScreenshotOptions>(Optional)

Returns:

Promise<Buffer>