DevTools (Test Debugging & Visualization) Service
@wdio/devtools-service is a 3rd party package, for more information please see GitHub | npm
A powerful browser devtools extension for debugging, visualizing, and controlling test executions in real-time.
Works with WebdriverIO, Nightwatch.js, and Selenium WebDriver (any test runner) — same backend, same UI, same capture infrastructure.
It runs in two modes: live — an interactive dashboard that opens as your tests run — and trace — a portable trace.zip artifact for offline replay, CI, and AI-agent diffing.
Quick Start
Install the adapter for your framework, add it to your config, and run — the DevTools dashboard opens automatically.
npm install @wdio/devtools-service --save-dev # WebdriverIO (Nightwatch / Selenium below)
// wdio.conf.js
export const config = {
services: ['devtools'] // live mode — opens the dashboard on run
}
npx wdio run wdio.conf.js
Want a portable artifact instead of a live UI (CI / agent diffing)? Switch to trace mode — see Configuration and Usage. Full setup for each framework: Installation · Nightwatch · Selenium.
Features
🎯 Interactive Test Execution
- Selective Test Rerun: Click play buttons on individual test cases, test suites, or Cucumber scenario examples to re-execute them instantly
- Smart Browser Reuse: Tests rerun in the same browser window without opening new tabs, improving performance and user experience
- Stop Test Execution: Terminate running tests with proper process cleanup using the stop button
- Test List Preservation: All tests remain visible in the sidebar during reruns, maintaining full context
🎭 Multi-Framework Support
- Mocha: Full support with grep-based filtering for test/suite execution
- Jasmine: Complete integration with grep-based filtering
- Cucumber: Scenario-level and example-specific execution with feature:line targeting