delete images if OCRResult is identified

This commit is contained in:
Lei PAN
2023-09-01 22:24:49 +02:00
parent 06bf2ead13
commit 2a7c43c2af
2 changed files with 27 additions and 2 deletions
+3
View File
@@ -582,6 +582,7 @@ class CommandorPage {
})
if (this.firstStart) {
this.disconnectBrowser();
await delay(3000);
await this.checkResultWithOcr();
}
}
@@ -1196,6 +1197,8 @@ class CommandorPage {
await this.device.shell("input tap " + 411 + " " + 1977)
} else if (this.browserPackageName.includes("brave") && this.device.model() === "ONEPLUS A6000") {
await this.device.shell("input tap " + 411 + " " + 1970)
} else if (this.browserPackageName.includes("brave") && this.device.model() === "22041219PG") {
await this.device.shell("input tap " + 411 + " " + 2020)
} else
await this.device.shell("input tap " + 411 + " " + 2100)
}