website/docs/Devtools.md
The DevTools service provides a powerful browser-based debugging interface for WebdriverIO test executions. It allows you to visualize, debug, and control your tests in real-time through an interactive web application.
This service enables you to:
Install the service as a dev dependency:
npm install --save-dev @wdio/devtools-service
Add the service to your WebDriverIO configuration:
// wdio.conf.js
export const config = {
// ...
services: ['devtools'],
// ...
};
Configure the DevTools service with these options:
// wdio.conf.js
export const config = {
// ...
services: [
['devtools', {
port: 3000, // Port for the devtools UI (default: 3000)
}]
],
// ...
};
3000) - Port number for the devtools UI serverWhen you run your WebdriverIO tests with the DevTools service enabled:
http://localhost:3000 (configurable)Explore the DevTools features in detail: