From fd0ec357f22f5efbce52653bc1003a3288474ecd Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Mon, 29 May 2023 11:26:23 +0200 Subject: [PATCH] add more logs --- src/workers/CommandorPage.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 2987aff..a9c4760 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -732,12 +732,16 @@ class CommandorPage { browserWSEndpoint: "ws://127.0.0.1:" + this.port + "/devtools/browser", headless: false, defaultViewport: null }) + logWithDevice("get pages", this.device) + let pages = await this.browser.pages(); pages.forEach((currentPage) => { if (currentPage.url() === RDV_URL) { this.page = currentPage; } }) + logWithDevice("this.page.bringToFront();", this.device) + await this.page.bringToFront(); // this.page = pages; // this.page.await