support chrome

This commit is contained in:
2024-09-22 23:29:23 +02:00
parent 87910a6524
commit ac60977177
2 changed files with 13 additions and 7 deletions
+10 -6
View File
@@ -1073,10 +1073,12 @@ class CommandorPage {
case OCRResult.TO_SKIP
:
logWithDevice("TO_SKIP", this.device)
if (this.device.model() === "21091116C")
await this.device.shell("input tap " + 530 + " " + 1742)
else
await this.device.shell("input tap " + 488 + " " + 1848)
if (this.device.model() === "21091116C" || this.device.model() === "22041219PG") {
await this.tapForDevice(this.device, 530, 1742)
await delay(1000);
await this.tapForDevice(this.device, 530, 1742)
} else
await this.tapForDevice(this.device, 488, 1848)
await delay(2000);
await this.checkResultWithOcr();
break;
@@ -1131,8 +1133,6 @@ class CommandorPage {
await this.tapLaterBtn()
await delay(5000)
await this.checkResultWithOcr();
// this.firstStart = true;
// await this.loadPage()
break;
case
OCRResult.CLOSED
@@ -1453,6 +1453,10 @@ class CommandorPage {
this.device.shell("input tap " + 535 + " " + 1930)
await delay(1000);
this.device.shell("input tap " + 535 + " " + 1930)
} else if (model === "DE2117") {
await this.tapForDevice(this.device, 529, 2050)
await delay(1000)
await this.tapForDevice(this.device, 529, 2050)
} else if (model === "22041219PG") {
this.device.shell("input tap " + 540 + " " + 1985)
} else if (model === "21091116C") {