Skip to main content
The Screenshot node captures a screenshot of the current page or a specific element. This is useful for documentation, debugging, or visual verification.

Parameters

ParameterTypeRequiredDescription
metadataobjectNoMetadata to attach to the screenshot for identification in results
wait_timenumberNoMaximum time (ms) to wait for the element. Default: 15000
marginnumberNoPixels of padding around the element
max_scrollsnumberNoMaximum number of scrolls for full-page capture
wait_after_scrollnumberNoTime to wait after each scroll (ms)

Examples

Capture a screenshot with metadata for identification in results:
{
  "id": "abc123",
  "name": "Screenshot dashboard",
  "action": "SCREENSHOT",
  "parameters": {
    "metadata": {
      "id": "123",
      "screen": "dashboard"
    }
  }
}

Notes

  • Screenshots are stored and can be accessed in the run results
  • Use margin to remove a percentage of the viewport. Can be helpful for removing sticky headers.