Take Screenshot
AI-generatedSummary
Captures a screenshot of the current page in a remote Playwright browser session and stores it as a binary property on the output item.
Inputs
- Property Name (dataPropertyName) (required) — Name of the binary property that holds the screenshot. Defaults to "screenshot".
- Browser Endpoint (browserEndpoint) — WebSocket endpoint of the remote Playwright browser, e.g. ws://playwright:3000. If empty, the node uses the endpoint of the existing session or the one passed from a previous Playwright node. It errors if none is found.
- Browser (browser) — Browser type to connect with: Firefox (default) or Chrome (chromium).
- Leave Session Open (leaveSessionOpen) — Defaults to true, which keeps the session alive for later Playwright nodes. If false, the session is closed after the screenshot.
- Browser Connection Options (browserOptions) — Optional collection. Timeout is the connection timeout in ms (default 30000). Ignore SSL Issues ignores HTTPS certificate errors. Session ID sets a custom session key. Use it when the previous node is not a Playwright node, so the same session is reused.
- Screenshot Options (screenshotOptions) — Optional collection. Full Page captures the whole scrollable page. Path is passed to Playwright as the file path to save to, and is also used as the binary file name.
Output shape
One item per input item. The binary property named by Property Name holds the PNG image (mime type image/png). The JSON contains success: true, the page url, and playwright.sessionKey and playwright.browserEndpoint for chaining to later Playwright nodes.
The screenshot is of whatever page the session currently shows, so run Navigate first in the same session. This operation does not navigate. With Continue On Fail, errors return an item with error and playwright.sessionKey. The format is always labelled image/png, and Playwright's default screenshot format is PNG. If Path is set, Playwright also writes the file, and the binary file name uses that path.
Examples
Example 1: Screenshot a page after navigating to it
Navigate node (URL, endpoint ws://playwright:3000, Leave Session Open on) followed by Take Screenshot with Property Name "screenshot".
Example 2: Capture an entire long page and then release the browser
Take Screenshot with Screenshot Options > Full Page enabled and Leave Session Open disabled.
Example 3: Screenshot after a non-Playwright node
Set Browser Connection Options > Session ID to the sessionKey from an earlier Playwright node, and set Browser Endpoint if needed.