swipe for oneplus 8t

This commit is contained in:
Lei PAN
2023-05-29 12:25:04 +02:00
parent 056f46643f
commit b718281551
+4 -1
View File
@@ -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