new and exposes capture(options) → Promise<Buffer> (image bytes).
UrlScreenshot
HtmlScreenshot
MarkdownScreenshot
Screenshot options
- properties —
ImageProperties:format("png"|"jpeg"|"webp"),quality(0–100, JPEG),omitBackground,width,height,clip - waitDelay, waitForSelector, waitForExpression
- extraHttpHeaders, failOnHttpStatusCodes, failOnConsoleExceptions, failOnResourceHttpStatusCodes, ignoreResourceHttpStatusDomains, failOnResourceLoadingFailed, skipNetworkIdleEvent
- optimizeForSpeed — favor encoding speed over output size
- cookies, downloadFrom, userPassword, ownerPassword, embeds
ImageProperties and related types.