@dev-blinq/cucumber_client 1.0.1594-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.
@@ -307,6 +307,7 @@ export class RemoteBrowserService extends EventEmitter {
307
307
  const { targetInfo } = await cdpSession.send("Target.getTargetInfo");
308
308
  await cdpSession.detach();
309
309
  if (targetInfo && targetInfo.targetId) {
310
+ this.log("🎭 Target info", targetInfo);
310
311
  this.log("✅ Found CDP ID by session", { id: targetInfo.targetId, url: page.url() });
311
312
  return targetInfo.targetId;
312
313
  }
@@ -363,16 +364,19 @@ export class RemoteBrowserService extends EventEmitter {
363
364
  async getState() {
364
365
  this.log("📊 Getting current state");
365
366
  const debugData = await this.getDebugURLs();
367
+ this.log("📊 Debug data for state", debugData);
366
368
  const pagesData = [];
367
369
  for (const [stableTabId, pageInfo] of this.pages.entries()) {
368
370
  let currentCdpId = pageInfo.cdpTargetId;
369
371
  let debugInfo = debugData.find((d) => d.id === currentCdpId);
372
+ this.log("🔍 debugInfo ", debugInfo);
370
373
  if (!debugInfo) {
371
374
  this.log("⚠️ Re-finding CDP ID for", { stableTabId });
372
375
  const newCdpId = await this.findCdpTargetId(pageInfo.page);
373
376
  if (newCdpId) {
374
377
  pageInfo.cdpTargetId = newCdpId;
375
378
  debugInfo = debugData.find((d) => d.id === newCdpId);
379
+ this.log("🔍 Updated debugInfo after re-finding CDP ID", debugInfo);
376
380
  this.log("✅ Re-found CDP ID", { stableTabId, newCdpId });
377
381
  }
378
382
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-blinq/cucumber_client",
3
- "version": "1.0.1594-dev",
3
+ "version": "1.0.1596-dev",
4
4
  "description": " ",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",