WebdriverIO CLI
$ wdio Foundation Med RiskWebdriverIO 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.
npm install -D @wdio/cli Use wdio run to execute deterministic WebDriver/Appium CI test suites; use browser MCP or subagents for ad-hoc exploratory tasks.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
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
Runs scoped test suites against configured local/staging URLs and writes only local report artifacts.
- Scoped via
wdio.conf.jsand--spec/--suite
Cross-platform via @wdio/cli (npm/npx), though requires Node.js plus local browser binaries or Appium/Selenium drivers.
- Distributed via
npmandnpxacross macOS, Linux, Windows
Unifies desktop WebDriver/BiDi, Electron, and mobile Appium testing with parallel multi-worker execution.
- Supports WebDriver BiDi, Chrome DevTools, and Appium services
OpenJS Foundation project (webdriverio/webdriverio) under MIT license with active releases.
- OpenJS Foundation project under MIT license
Extensive official documentation at webdriver.io covering CLI flags, reporters, and services.
- Official CLI reference at
https://webdriver.io/docs/clioptions
Security, Auth & Guardrails
Reads optional cloud grid keys (e.g. SAUCE_USERNAME/BROWSERSTACK_KEY) from env vars or wdio.conf.js.
Free, MIT open-source OpenJS Foundation project.
# 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
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.
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--logLevelflags keep CI runs focused.
Caveats & Pitfalls
- ! JSON reporting is not built into stdout by default; requires configuring
@wdio/json-reporterinwdio.conf.js. - ! Running
wdio configwithout--yestriggers an interactive CLI wizard.