Features

How do I automate a browser task without writing code?

Updated December 5, 2026

Build a scenario in Mirage: steps such as open a page, fill a field, click a button or read a value, made from blocks or recorded from what you do in a profile. Run it on one profile or many, on a schedule, with human-like input. A scenario holds no code, so a file you receive cannot harm your computer.

Mirage Browser: the list of scenarios
Screens of the current build with demo data, not a mock-up.

How do I build my first scenario?

  1. Open Automation › Scenarios and choose New scenario.
  2. Add steps with Add step: pages and tabs, actions, waiting, data and logic.
  3. For a step that acts on an element, choose how to find it: a role and name, a label, a placeholder, text, a test id or a CSS selector.
  4. Press Run, pick a profile and fill in the variables. Without a window runs a stopped profile in the background.
  5. Open the run under Recent runs to read its log.

What does a scenario file look like?

The same scenario is also JSON, which you can keep in git or send to a colleague:

JSON
{
  "format": "mirage.scenario",
  "version": 1,
  "name": "Check order status",
  "variables": { "order": "10045" },
  "steps": [
    { "type": "open", "url": "https://shop.example/orders" },
    { "type": "fill", "target": { "label": "Order number" }, "value": "{{order}}" },
    { "type": "click", "target": { "role": "button", "name": "Find" } },
    { "type": "extract", "target": { "css": ".status" }, "into": "status" },
    { "type": "log", "message": "Order {{order}}: {{status}}" }
  ]
}

Which steps are there?

Group Steps
Pages and tabs open, newTab, switchTab, closeTab, back, reload, browse
Actions click, fill, press, select, check, hover, scroll
Waiting wait, waitFor, waitUrl
Data extract, set, http, log
Logic if, repeat, forEach, stop

Conditions combine exists, visible, urlContains, equals and contains with not, all and any. A Data table imported from CSV feeds forEach, one row per pass.

Can I record a scenario instead of building it?

Yes. Record on the Scenarios card opens a profile; do the task, press Done, and Mirage turns pages into open and waitUrl steps, clicks into click, and typed text into fill steps with variables. Passwords and hidden fields are never recorded. A session recording can become a scenario the same way.

How do I run it on many profiles or on a schedule?

In the Run dialog, tick several profiles and set At a time. Repeat turns the run into a schedule: every N minutes, or on chosen weekdays at a time. Mirage must be running for a schedule to fire. A webhook or the Telegram bot can tell you when a run fails.

What if I outgrow the blocks?

Export turns a scenario into Playwright code for TypeScript or Python on the SDK, with the same element search and human-like input:

Shell
MIRAGE_API_KEY=mrg_... npx tsx check-order.ts "Client A"

The full step reference is in the scenarios guide. For new profiles, see profile warm-up.