puppeteer/new-docs/puppeteer.protocol.page.capturescreenshotrequest.md
2020-07-13 14:01:35 +01:00

1.2 KiB

Home > puppeteer > Protocol > Page > CaptureScreenshotRequest

Protocol.Page.CaptureScreenshotRequest interface

Signature:

export interface CaptureScreenshotRequest 

Properties

Property Type Description
clip Viewport Capture the screenshot of a given region only.
format ('jpeg' | 'png') Image compression format (defaults to png).
fromSurface boolean Capture the screenshot from the surface, rather than the view. Defaults to true.
quality integer Compression quality from range [0..100] (jpeg only).