2023-01-18 14:06:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Page.screenshot_1
|
|
|
|
---
|
|
|
|
|
|
|
|
# Page.screenshot() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Page {
|
2023-09-21 19:21:12 +00:00
|
|
|
screenshot(options?: Readonly<ScreenshotOptions>): Promise<Buffer>;
|
2023-01-18 14:06:20 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2023-09-21 19:21:12 +00:00
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --------- | --------------------------------------------------------------------- | ------------ |
|
|
|
|
| options | Readonly<[ScreenshotOptions](./puppeteer.screenshotoptions.md)> | _(Optional)_ |
|
2023-01-18 14:06:20 +00:00
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<Buffer>
|