@dev-blinq/cucumber_client 1.0.1579-dev → 1.0.1581-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.
|
@@ -313,6 +313,8 @@ export class BVTRecorder {
|
|
|
313
313
|
if (process.env.CDP_LISTEN_PORT === undefined) {
|
|
314
314
|
this.#remoteDebuggerPort = await findAvailablePort();
|
|
315
315
|
process.env.CDP_LISTEN_PORT = this.#remoteDebuggerPort;
|
|
316
|
+
} else {
|
|
317
|
+
this.#remoteDebuggerPort = process.env.CDP_LISTEN_PORT;
|
|
316
318
|
}
|
|
317
319
|
|
|
318
320
|
// this.stepRunner.setRemoteDebugPort(this.#remoteDebuggerPort);
|
|
@@ -674,7 +676,7 @@ export class BVTRecorder {
|
|
|
674
676
|
context: this.context,
|
|
675
677
|
});
|
|
676
678
|
this.browserEmitter.on(this.events.browserStateSync, (state) => {
|
|
677
|
-
this.page = this.browserEmitter.getSelectedPage();
|
|
679
|
+
// this.page = this.browserEmitter.getSelectedPage();
|
|
678
680
|
this.sendEvent(this.events.browserStateSync, state);
|
|
679
681
|
});
|
|
680
682
|
}
|
|
@@ -753,7 +755,7 @@ export class BVTRecorder {
|
|
|
753
755
|
[id, contextId, mode]
|
|
754
756
|
);
|
|
755
757
|
|
|
756
|
-
console.log(`Generated locators: for ${inputID}: `, JSON.stringify(locatorsObj));
|
|
758
|
+
// console.log(`Generated locators: for ${inputID}: `, JSON.stringify(locatorsObj));
|
|
757
759
|
await newPage.close();
|
|
758
760
|
if (event.nestFrmLoc?.children) {
|
|
759
761
|
locatorsObj.nestFrmLoc = event.nestFrmLoc.children;
|
|
@@ -190,6 +190,7 @@ export class RemoteBrowserService extends EventEmitter {
|
|
|
190
190
|
this.pages.set(id, page);
|
|
191
191
|
}
|
|
192
192
|
page.on("framenavigated", async () => {
|
|
193
|
+
await new Promise((resolve) => setTimeout(resolve, 1000)); // wait for a bit
|
|
193
194
|
await this.syncState();
|
|
194
195
|
});
|
|
195
196
|
}
|