Skip to main content
Version: 21.5.2

Page.screenshot() method

Signature:

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

Parameters

ParameterTypeDescription
optionsReadonly<ScreenshotOptions>(Optional)

Returns:

Promise<Buffer>