Skip to main content
Version: 20.6.0

Page.screenshot() method

Signature:

class Page {
screenshot(
options?: ScreenshotOptions & {
encoding?: 'binary';
}
): Promise<Buffer>;
}

Parameters

ParameterTypeDescription
optionsScreenshotOptions & { encoding?: 'binary'; }(Optional)

Returns:

Promise<Buffer>