puppeteer/docs/api/puppeteer.elementhandle.screenshot_1.md

47 lines
525 B
Markdown
Raw Permalink Normal View History

---
sidebar_label: ElementHandle.screenshot_1
---
# ElementHandle.screenshot() method
#### Signature:
```typescript
class ElementHandle {
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;