website/docs/devtools/ConsoleLogs.md
Capture and inspect all browser console output during test execution. DevTools records console messages from your application (console.log(), console.warn(), console.error(), console.info(), console.debug()) as well as WebDriverIO framework logs based on the logLevel configured in your wdio.conf.ts.
Features:
logLevel (trace, debug, info, warn, error, silent)Configuration:
// wdio.conf.ts
export const config = {
// Level of logging verbosity: trace | debug | info | warn | error | silent
logLevel: 'info', // Controls which framework logs are captured
// ...
};
This makes it easy to debug JavaScript errors, track application behavior, and see WebDriverIO's internal operations during test execution.