Skip to main content
Version: 21.6.0

Page.screenshot() method

Signature:

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

Parameters

ParameterTypeDescription
optionsReadonly<ScreenshotOptions>(Optional)

Returns:

Promise<Buffer>