Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.54 KB

File metadata and controls

42 lines (26 loc) · 1.54 KB

BrowserScreenshotRequest

Properties

Name Type Description Notes
url String Absolute http(s) URL of the page to render.
waitUntil WaitUntilEnum When navigation is considered complete. `networkidle0` waits for the network to go idle (best for JavaScript-heavy pages); `load` is fastest. [optional]
timeoutMs Integer Navigation timeout in milliseconds (1000–60000). [optional]
viewport BrowserScreenshotRequestViewport [optional]
fullPage Boolean Capture the full scrollable page instead of just the viewport. [optional]
format FormatEnum Output image format. [optional]
quality Integer Compression quality (0–100). Only valid for `jpeg` and `webp`. [optional]
selector String Capture only the first element matching this CSS selector. [optional]
omitBackground Boolean Render a transparent background (ignored for `jpeg`). [optional]

Enum: WaitUntilEnum

Name Value
LOAD "load"
DOMCONTENTLOADED "domcontentloaded"
NETWORKIDLE0 "networkidle0"
NETWORKIDLE2 "networkidle2"

Enum: FormatEnum

Name Value
PNG "png"
JPEG "jpeg"
WEBP "webp"