Skip to main content
Version: 20.1.2

Page.screenshot() method

Signature:

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

Parameters

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

Returns:

Promise<Buffer>