puppeteer/website/versioned_docs/version-21.5.2/api/puppeteer.page.screenshot_1.md

24 lines
546 B
Markdown
Raw Normal View History

---
sidebar_label: Page.screenshot_1
---
# Page.screenshot() method
#### Signature:
```typescript
class Page {
screenshot(options?: Readonly<ScreenshotOptions>): Promise<Buffer>;
}
```
## Parameters
| Parameter | Type | Description |
| --------- | --------------------------------------------------------------------- | ------------ |
| options | Readonly&lt;[ScreenshotOptions](./puppeteer.screenshotoptions.md)&gt; | _(Optional)_ |
**Returns:**
Promise&lt;Buffer&gt;