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

47 lines
498 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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
options
</td><td>
Readonly&lt;[ScreenshotOptions](./puppeteer.screenshotoptions.md)&gt;
</td><td>
_(Optional)_
</td></tr>
</tbody></table>
**Returns:**
Promise&lt;Buffer&gt;