Skip to main content
Version: 19.7.1

Page.screenshot() method

Signature:

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

Parameters

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

Returns:

Promise<Buffer>