puppeteer/docs/api/puppeteer.page.screenshot_2.md
2023-02-23 13:31:23 +01:00

24 lines
507 B
Markdown

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