support chrome

This commit is contained in:
2024-09-21 12:48:23 +02:00
parent 6a0e37c166
commit ff9c9bc07d
3 changed files with 13 additions and 8 deletions
+10 -5
View File
@@ -89,8 +89,8 @@ class CommandorPage {
this.port = port;
this.sender = sender;
this.ocrChecker = new OCRChecker(this.device, this.contact);
this.browserPackageName = "com.brave.browser";
// this.browserPackageName = "com.android.chrome";
// this.browserPackageName = "com.brave.browser";
this.browserPackageName = "com.android.chrome";
this.isFillingFields = false;
this.isTerminated = false;
this.cguChecked = false;
@@ -1142,8 +1142,10 @@ class CommandorPage {
OCRResult.NEED_TO_CLICK_LATE_BTN
:
await this.tapLaterBtn()
this.firstStart = true;
await this.loadPage()
await delay(5000)
await this.checkResultWithOcr();
// this.firstStart = true;
// await this.loadPage()
break;
case
OCRResult.CLOSED
@@ -1460,7 +1462,10 @@ class CommandorPage {
} else if (model === "Mi Note 10") {
this.device.shell("input tap " + 550 + " " + 1920)
} else if (model === "ONEPLUS A6000") {
this.device.shell("input tap " + 535 + " " + 1945)
log("will tap on " + model + ": " + 535 + " " + 1930)
this.device.shell("input tap " + 535 + " " + 1930)
await delay(1000);
this.device.shell("input tap " + 535 + " " + 1930)
} else if (model === "22041219PG") {
this.device.shell("input tap " + 540 + " " + 1985)
} else if (model === "21091116C") {