[Home](./index.md) > [puppeteer](./puppeteer.md) > [Page](./puppeteer.page.md) > [\_screenshotTask](./puppeteer.page._screenshottask.md)
## Page.\_screenshotTask() method
Signature:
```typescript
_screenshotTask(format: 'png' | 'jpeg', options?: ScreenshotOptions): Promise;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| format | 'png' \| 'jpeg' | |
| options | ScreenshotOptions | |
Returns:
Promise<Buffer \| string>