@dev-blinq/cucumber_client 1.0.1595-dev → 1.0.1596-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.
|
@@ -364,16 +364,19 @@ export class RemoteBrowserService extends EventEmitter {
|
|
|
364
364
|
async getState() {
|
|
365
365
|
this.log("📊 Getting current state");
|
|
366
366
|
const debugData = await this.getDebugURLs();
|
|
367
|
+
this.log("📊 Debug data for state", debugData);
|
|
367
368
|
const pagesData = [];
|
|
368
369
|
for (const [stableTabId, pageInfo] of this.pages.entries()) {
|
|
369
370
|
let currentCdpId = pageInfo.cdpTargetId;
|
|
370
371
|
let debugInfo = debugData.find((d) => d.id === currentCdpId);
|
|
372
|
+
this.log("🔍 debugInfo ", debugInfo);
|
|
371
373
|
if (!debugInfo) {
|
|
372
374
|
this.log("⚠️ Re-finding CDP ID for", { stableTabId });
|
|
373
375
|
const newCdpId = await this.findCdpTargetId(pageInfo.page);
|
|
374
376
|
if (newCdpId) {
|
|
375
377
|
pageInfo.cdpTargetId = newCdpId;
|
|
376
378
|
debugInfo = debugData.find((d) => d.id === newCdpId);
|
|
379
|
+
this.log("🔍 Updated debugInfo after re-finding CDP ID", debugInfo);
|
|
377
380
|
this.log("✅ Re-found CDP ID", { stableTabId, newCdpId });
|
|
378
381
|
}
|
|
379
382
|
}
|