Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

WebdriverIO CLI

$ wdio Foundation Med Risk
WebdriverIO · Browser & Web · MIT · macos / linux / windows

WebdriverIO CLI (wdio, from @wdio/cli) orchestrates parallel WebDriver, Chrome DevTools, and Appium mobile E2E test suites via wdio run wdio.conf.js. It supports --spec, --suite, --logLevel, and structured JSON output via @wdio/json-reporter.

FCRS-1.0 Score
84 /100
Good
Medium Confidence
Zero-Friction Install
npm install -D @wdio/cli
CLI vs MCP Decision Hybrid (CLI + MCP)

Use wdio run to execute deterministic WebDriver/Appium CI test suites; use browser MCP or subagents for ad-hoc exploratory tasks.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

Deterministic wdio run execution with --spec, --bail, and --logLevel, though wdio config is interactive by default and JSON reporting requires @wdio/json-reporter plugin setup.

  • Supports wdio run --spec, --logLevel, and @wdio/json-reporter
Trust & Safety 21 / 25

Runs scoped test suites against configured local/staging URLs and writes only local report artifacts.

  • Scoped via wdio.conf.js and --spec/--suite
Setup & Portability 12 / 15

Cross-platform via @wdio/cli (npm/npx), though requires Node.js plus local browser binaries or Appium/Selenium drivers.

  • Distributed via npm and npx across macOS, Linux, Windows
Utility & Efficiency 14 / 15

Unifies desktop WebDriver/BiDi, Electron, and mobile Appium testing with parallel multi-worker execution.

  • Supports WebDriver BiDi, Chrome DevTools, and Appium services
Maintenance & Lineage 9 / 10

OpenJS Foundation project (webdriverio/webdriverio) under MIT license with active releases.

  • OpenJS Foundation project under MIT license
Docs & Verifiability 9 / 10

Extensive official documentation at webdriver.io covering CLI flags, reporters, and services.

  • Official CLI reference at https://webdriver.io/docs/clioptions

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key Config File
Credential Storage

Reads optional cloud grid keys (e.g. SAUCE_USERNAME/BROWSERSTACK_KEY) from env vars or wdio.conf.js.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free, MIT open-source OpenJS Foundation project.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# WebdriverIO (wdio) Agent Rules
- Never run `npx wdio config` without `--yes` (it launches an interactive setup questionnaire).
- Scope test runs with `--spec <path>` or `--suite <name>` and `--logLevel error`.
- Enable `@wdio/json-reporter` in `wdio.conf.js` when structured pass/fail artifacts are needed.

Agent-Ready Command Recipes

Safe Read-Only Queries

Run a single spec non-interactively with minimal logs
npx wdio run wdio.conf.js --spec ./test/specs/smoke.e2e.js --logLevel error

Executes one spec file with --logLevel error to minimize noisy runner logs.

Inspect WebdriverIO CLI options
npx wdio run --help

Prints supported runner flags (--spec, --suite, --bail, --logLevel) without launching browsers.

Strengths for Agents

  • + Supports WebDriver BiDi, Chrome, Firefox, and mobile Appium under one runner (wdio run).
  • + Fine-grained --spec, --suite, --bail, and --logLevel flags keep CI runs focused.

Caveats & Pitfalls

  • ! JSON reporting is not built into stdout by default; requires configuring @wdio/json-reporter in wdio.conf.js.
  • ! Running wdio config without --yes triggers an interactive CLI wizard.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI