Skip to content

Test

Status: PASS

The agent-browser binary installs and responds to a version check. Actual browsing requires a Chromium-compatible runtime.

What was tested

bash
cargo install agent-browser
agent-browser --version

Actual output:

agent-browser 0.19.0

The Rust CLI installed successfully via cargo. Version 0.19.0 confirmed at test time.

What this test confirms

The binary is on PATH and executes without error. The install path and runtime are functional.

What is required for browser automation

Actual page navigation and interaction require a running Chromium-compatible browser. Run the install step first:

bash
agent-browser install

This downloads the browser runtime. Without it, agent-browser open will fail with:

error: Chrome binary not found. Run `agent-browser install` first.

Smoke test: version check (no browser needed)

bash
agent-browser --version

Expected output:

agent-browser 0.19.0

Any clean semver line with no error confirms the binary is installed and executable.

Full browser smoke test (requires agent-browser install first)

bash
agent-browser open https://example.com
agent-browser snapshot -i --json
agent-browser screenshot /tmp/test.png
agent-browser close

Expected results:

  1. open -- no output, exit code 0
  2. snapshot -i --json -- JSON array of accessibility nodes with ref, role, name fields
  3. screenshot -- /tmp/test.png written to disk, exit code 0
  4. close -- no output, exit code 0