From f205c29fd1f2ec382ed9082d7a087be45fbe647f Mon Sep 17 00:00:00 2001 From: Vishnu Vardhan Date: Tue, 21 Apr 2026 16:33:36 +0530 Subject: [PATCH 1/2] Multiport support and readme update --- README.md | 8 +++++++- packages/nightwatch-devtools/README.md | 4 +++- packages/nightwatch-devtools/src/index.ts | 3 ++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 51e76bc..cc74fd4 100644 --- a/README.md +++ b/README.md @@ -70,11 +70,17 @@ Works with **WebdriverIO** and **[Nightwatch.js](./packages/nightwatch-devtools/ ## Installation +**WebdriverIO:** ```bash npm install @wdio/devtools-service ``` -> **Nightwatch users:** `@wdio/nightwatch-devtools` is included as a dependency of `@wdio/devtools-service`. Install the service and import from `@wdio/nightwatch-devtools` directly — see the [Nightwatch Integration](#nightwatch-integration) section. +**Nightwatch:** +```bash +npm install @wdio/nightwatch-devtools +``` + +> See the [Nightwatch Integration](#nightwatch-integration) section for configuration details. ## Configuration diff --git a/packages/nightwatch-devtools/README.md b/packages/nightwatch-devtools/README.md index 5f883bd..c5a3183 100644 --- a/packages/nightwatch-devtools/README.md +++ b/packages/nightwatch-devtools/README.md @@ -2,7 +2,9 @@ > Nightwatch adapter for [WebdriverIO DevTools](../../README.md) - brings the same visual debugging UI to your Nightwatch test suite with zero test code changes. -> **Note:** `@wdio/nightwatch-devtools` is included as a dependency of `@wdio/devtools-service`. Install the service package and import from `@wdio/nightwatch-devtools` directly. +```bash +npm install @wdio/nightwatch-devtools +``` --- diff --git a/packages/nightwatch-devtools/src/index.ts b/packages/nightwatch-devtools/src/index.ts index 3f32730..59ca246 100644 --- a/packages/nightwatch-devtools/src/index.ts +++ b/packages/nightwatch-devtools/src/index.ts @@ -119,7 +119,8 @@ class NightwatchDevToolsPlugin { this.options.hostname ) log.info('🚀 Starting DevTools backend...') - await start(this.options) + const { port } = await start(this.options) + this.options.port = port const url = `http://${this.options.hostname}:${this.options.port}` log.info(`✓ Backend started on port ${this.options.port}`) log.info(` DevTools UI: ${url}`) From fac4fff27c827e6003b89e74b8ade19e86ac7896 Mon Sep 17 00:00:00 2001 From: Vishnu Vardhan Date: Tue, 21 Apr 2026 16:34:48 +0530 Subject: [PATCH 2/2] Version bump --- packages/nightwatch-devtools/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nightwatch-devtools/package.json b/packages/nightwatch-devtools/package.json index 1154b2b..57a81d8 100644 --- a/packages/nightwatch-devtools/package.json +++ b/packages/nightwatch-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@wdio/nightwatch-devtools", - "version": "1.0.1", + "version": "1.0.2", "description": "Nightwatch adapter for WebdriverIO DevTools - reuses existing backend, UI, and capture infrastructure", "type": "module", "main": "dist/index.js",