From b71828155134c27bd1436ab47082633bb5198e54 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Mon, 29 May 2023 12:25:04 +0200 Subject: [PATCH] swipe for oneplus 8t --- src/workers/CommandorPage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index bf5ccec..1ba6556 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -116,7 +116,7 @@ class CommandorPage { // } else { // await delay(10000); // if (!await this.checkIfSuccessful()) { - let cmd = "input swipe 382 482 382 1582" + let cmd = "input swipe 382 682 382 1682" logWithDevice("will send cmd:" + cmd, this.device) this.device.shell(cmd); await delay(3000); @@ -770,11 +770,14 @@ class CommandorPage { logWithDevice("this.browser.isConnected() is " + this.browser.isConnected(), this.device) if (this.browser.isConnected()) { let pages = await this.browser.pages(); + logWithDevice("get pages", this.device) + 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