Selenium DevTools
Selenium WebDriver adapter for WebdriverIO DevTools - brings the same visual debugging UI to any Selenium test, in Node.js or Python, regardless of the test runner.
Node.js works with Mocha, Jest, Cucumber, or a plain script - the plugin auto-detects the runner and wires test boundaries accordingly. Python works with pytest or a plain script, and under pytest needs no changes to your test files at all.
Pick your language in the tabs below; the choice follows you down the page.
Installation
- Node.js
- Python
npm install @wdio/selenium-devtools
pip install selenium-devtools-py
selenium-devtools install-backend
Requires Python 3.10+ and selenium>=4.44. Both are declared in the package metadata, so pip enforces them rather than leaving you to find an empty Network tab at runtime. Network capture subscribes through the public BiDi event API that selenium regenerated in 4.44; the private connection it replaced was removed in the same release, and 4.44 is what sets the Python floor.
The second command is optional, and worth running once. The dashboard backend is a Node package, which pip cannot install for you - so without it every run fetches the backend with npx on first use. That costs a registry round trip on each run, and where a proxy declines the package it fails as the run starts: the adapter warns, your tests then pass with nothing captured. selenium-devtools install-backend puts the backend on disk instead, and a run prefers what it finds there, reaching npx only when nothing is. selenium-devtools backend-path reports whether it is installed.