Page.screenshot() method
Signature:
class Page {
screenshot(
options?: ScreenshotOptions & {
encoding?: 'binary';
}
): Promise<Buffer>;
}
Parameters
Parameter | Type | Description |
---|---|---|
options | ScreenshotOptions & { encoding?: 'binary'; } | (Optional) |
Returns:
Promise<Buffer>