Watch a Mission in Headed Browser Mode
Testronaut runs Chromium headlessly by default. Add --head when you want to
watch the agent work in a normal browser window:
testronaut missions/login.mission.js --head
--headed is an equivalent alias. Reports, screenshots, agent reasoning, and
mission results work the same way in both modes.
Human interaction during a runβ
Head mode makes the browser visible and interactive, but it does not transfer control or automatically pause the agent. If a person clicks, types, or navigates while the agent is acting, both can change the same page at once. The agent observes the resulting DOM on its next browser observation and may adapt, but simultaneous actions can create races or invalidate the mission.
Treat the visible browser as observation-first. If a mission expects a person
to provide a short code, instruct the agent to use request_human_input; that
tool pauses agent execution while the terminal waits for the answer. See
Manual Input Tool.
For an unexpected CAPTCHA, consent step, identity check, or other browser action that requires a person, the agent should return a structured human-action handoff instead of continuing. Head mode does not currently provide a general pause/resume control for arbitrary manual browser takeover. See Human-action handoffs.
Desktop and remote environmentsβ
Head mode needs a graphical desktop session. macOS and Windows desktop
terminals normally provide one automatically. On Linux, DISPLAY or
WAYLAND_DISPLAY must be set.
Remote shells and CI runners usually do not expose a visible desktop. Run the
mission from a local desktop terminal, use X/Wayland forwarding, or connect to a
remote desktop. xvfb-run can provide Chromium with a virtual display for
automation, but that display is not visible unless you add a separate streaming
or VNC layer.
When Linux has no display, Testronaut exits before browser installation with an
actionable error. Omit --head to return to normal headless execution.
Headed mode is not an iframeβ
The CLI opens a native browser window on the machine running Testronaut. It does not expose that browser as embeddable web content. A hosted product that needs live viewing or manual takeover must stream the remote browser surface and secure its input channel with short-lived, run-scoped authorization.
For the supported remote CDP and iframe pattern, see Embed a Managed Browser Live View.