puppeteer/new-docs/puppeteer.page._screenshottask.md

24 lines
613 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; [Page](./puppeteer.page.md) &gt; [\_screenshotTask](./puppeteer.page._screenshottask.md)
## Page.\_screenshotTask() method
<b>Signature:</b>
```typescript
_screenshotTask(format: 'png' | 'jpeg', options?: ScreenshotOptions): Promise<Buffer | string>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| format | 'png' \| 'jpeg' | |
| options | ScreenshotOptions | |
<b>Returns:</b>
Promise&lt;Buffer \| string&gt;