Skip to main content
Version: 21.3.1

Page.screenshot() method

Signature:

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

Parameters

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

Returns:

Promise<Buffer>