Skip to content

Automation API

Page automation before screenshot capture

Automate page interactions — click, type, scroll, and wait — before taking a screenshot. Handle login walls, dismiss consent dialogs, trigger JavaScript states, and navigate multi-step flows.

Steps commands

Use step commands like click, type, wait, and screenshot with optional target selectors.

Popup and cookie handling

hide_popups=true applies anti-banner methods and filter rules so screenshots focus on content.

Ad suppression

hide_ads=true minimizes ad noise in visual regression checks and monitoring snapshots.

Video evidence

video=true captures full interaction flow with mp4, webm, or gif format support.

Live example

Login to a website, then capture

The automation fills the login form, submits it, waits for the dashboard to load, then takes a screenshot — all driven by the steps parameter.

Live example

Interact with dynamic page elements

Trigger chart tooltips, run searches, expand tree nodes, open drawers — any interaction a real user would perform. Capture the exact state you need, not just the initial page load.

Code example

Run automation steps in your language of choice

Every SDK supports the full steps parameter. Submit the job and poll or use a webhook to collect the result.

curl -X POST https://api.screenshotcenter.com/v1/screenshot \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://example.com/dashboard",
    "country": "us",
    "steps": [
      { "command": "click",      "selector": "#login-btn" },
      { "command": "type",       "selector": "#email",    "value": "user@example.com" },
      { "command": "type",       "selector": "#password", "value": "secret" },
      { "command": "click",      "selector": "button[type=submit]" },
      { "command": "wait",       "value": 1500 },
      { "command": "screenshot", "target": ".dashboard" }
    ],
    "hide_popups": true,
    "hide_ads": true,
    "video": true,
    "video_format": "mp4"
  }'

Frequently asked questions

What page automation steps are supported?

Click, type, scroll, wait, navigate, select, hover, and screenshot. Steps run sequentially in a real Chrome browser before the final capture.

Can I log into a website before taking a screenshot?

Yes. Chain click and type steps to fill login forms, then wait for the dashboard to load before capturing. You can also inject session cookies directly.

How do I dismiss cookie consent popups?

Set hide_popups=true to automatically dismiss consent banners using built-in filter rules, or use a click step targeting the specific dismiss button.

Can I record a video of the automation?

Yes. Add video=true to capture the full interaction flow as MP4, WebM, or GIF — useful for client reports, QA evidence, and compliance trails.