puppeteer/new-docs/puppeteer.elementhandle.screenshot.md

23 lines
554 B
Markdown
Raw Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [ElementHandle](./puppeteer.elementhandle.md) &gt; [screenshot](./puppeteer.elementhandle.screenshot.md)
## ElementHandle.screenshot() method
<b>Signature:</b>
```typescript
screenshot(options?: {}): Promise<string | Buffer | void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| options | {} | |
<b>Returns:</b>
Promise&lt;string \| Buffer \| void&gt;