add more logs

This commit is contained in:
Lei PAN
2023-05-29 11:26:23 +02:00
parent 9605632877
commit fd0ec357f2
+4
View File
@@ -732,12 +732,16 @@ class CommandorPage {
browserWSEndpoint: "ws://127.0.0.1:" + this.port + "/devtools/browser", browserWSEndpoint: "ws://127.0.0.1:" + this.port + "/devtools/browser",
headless: false, defaultViewport: null headless: false, defaultViewport: null
}) })
logWithDevice("get pages", this.device)
let pages = await this.browser.pages(); let pages = await this.browser.pages();
pages.forEach((currentPage) => { pages.forEach((currentPage) => {
if (currentPage.url() === RDV_URL) { if (currentPage.url() === RDV_URL) {
this.page = currentPage; this.page = currentPage;
} }
}) })
logWithDevice("this.page.bringToFront();", this.device)
await this.page.bringToFront(); await this.page.bringToFront();
// this.page = pages; // this.page = pages;
// this.page.await // this.page.await