@dev-blinq/cucumber_client 1.0.1578-dev → 1.0.1580-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -310,8 +310,12 @@ export class BVTRecorder {
|
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
async _initBrowser({ url }) {
|
|
313
|
-
|
|
314
|
-
|
|
313
|
+
if (process.env.CDP_LISTEN_PORT === undefined) {
|
|
314
|
+
this.#remoteDebuggerPort = await findAvailablePort();
|
|
315
|
+
process.env.CDP_LISTEN_PORT = this.#remoteDebuggerPort;
|
|
316
|
+
} else {
|
|
317
|
+
this.#remoteDebuggerPort = process.env.CDP_LISTEN_PORT;
|
|
318
|
+
}
|
|
315
319
|
|
|
316
320
|
// this.stepRunner.setRemoteDebugPort(this.#remoteDebuggerPort);
|
|
317
321
|
this.world = { attach: () => {} };
|