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