🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@wdio/devtools-service

Package Overview
Dependencies
Maintainers
3
Versions
456
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wdio/devtools-service

Hook up WebdriverIO with DevTools

latest
npmnpm
Version
10.0.1
Version published
Weekly downloads
101K
-19.53%
Maintainers
3
Weekly downloads
 
Created
Source

DevTools Hook

Hook your WebdriverIO project up with Devtools capabilities.

Install

You can install the package via:

npm install @devtools/hook

Usage

You can collect WebdriverIO trace data within standalone or testrunner environments. Read more on these different modes in the docs.

Standalone

When initiating a standalone WebdriverIO session, just wrap the remote call with the setupForDevtools exported by the package as follows:

import { remote } from 'webdriverio'
import { setupForDevtools } from '@wdio/devtools-service'

const browser = await remote(setupForDevtools({
    capabilities: {
        browserName: 'chrome',
        browserVersion: 'latest'
    }
}))

// call commands
// ...

await browser.deleteSession()

Testrunner

To integrate WebdriverIO Devtools in your test runner, just add this service to your wdio.conf.js as follows:

export const config: WebdriverIO.Config = {
  // ...
  services: ['devtools']
  // ...
}

FAQs

Package last updated on 11 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts