Files and outputNeeds verification

Screenshot Block

Screenshot creates a PNG or JPEG image from the browser page and stores it as a file variable or artifact.

At a glance

Best for
Visual page evidence
Formats
PNG or JPEG
Output
File/artifact variable
Error handle
Yes

What it does

Screenshot captures the current browser state. It can capture the viewport, a full page, or a selected element depending on settings and runtime support.

Use it when the output needs to include visual proof, not just extracted text or data.

Use it when

  • Save proof of a page state after a run.
  • Capture a chart, receipt, confirmation page, or selected element.
  • Attach a visual result to a later upload or email step.

Do not use it when

  • You need structured data; use Extract Text or Extract Data.
  • You need a PDF document; use Create PDF.
  • The page contains sensitive data that should not be stored.

Settings

Screenshot settings choose file format, filename, capture target, destination, and output variable.

Filename

Required: No
Variables
Yes
Description
Output filename for the screenshot.

Format and quality

Required: No
Variables
No
Description
PNG or JPEG. JPEG can use a quality value.

Full page

Required: No
Variables
No
Description
Captures the full page where supported.

Element selector

Required: No
Variables
Yes
Description
Optional selector for capturing a specific element.

Destination

Required: No
Variables
No
Description
Save locally or to cloud storage depending on runtime.

Output variable

Required: Recommended
Variables
Variable name
Description
Stores the resulting file reference.

Outputs

Screenshot outputs a file reference, not raw image bytes.

{{outputVariableName}}file

File or artifact reference for the captured image.

filenamestring

Name of the saved screenshot file.

Example Flow

Screenshot usually runs after the page has reached the visual state you want to capture.

  1. Open or prepare the page.
  2. Wait for the visual state.
  3. Capture the screenshot and pass the file to an upload or email Block.

Errors and fixes

Start with symptoms visible in the editor or Inspector, then check the earliest Block that produced the wrong page state, variable, or output.

The screenshot misses content.

Check
Check whether full-page capture is supported for the runtime and page.
Fix
Scroll, wait, or use an element selector for the relevant content.

The file cannot be saved in Cloud Run.

Check
Check the destination setting.
Fix
Use a cloud destination for Cloud Runs.

Local and cloud runs

Cloud supports cloud artifacts and element capture. Local capture may differ for full-page behavior, so verify visual results in the target runtime.