24 lines
613 B
Markdown
24 lines
613 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [\_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<Buffer \| string>
|
||
|
|