support moto

This commit is contained in:
2024-09-27 17:25:23 +02:00
parent f677febb3f
commit f67b6a3383
2 changed files with 10 additions and 2 deletions
+5 -2
View File
@@ -1416,6 +1416,11 @@ class CommandorPage {
await delay(2000);
this.device.shell("input tap " + 818 + " " + 2140)
await delay(1000);
} else if (model === "moto_g51_5G") {
await this.tapForDevice(this.device, 800, 2215)
await delay(2000);
this.device.shell("input tap " + 800 + " " + 2215)
await delay(1000);
} else if (model === "CPH2219") {
this.device.shell("input tap " + 772 + " " + 2146)
await delay(2000);
@@ -1468,11 +1473,9 @@ class CommandorPage {
async enableDisableAirPlanMode() {
logWithDevice("will enable/disable airplane mode", this.device)
try {
// await this.device.shell("cmd connectivity airplane-mode enable")
await exceutShellCmd(this.device, "cmd connectivity airplane-mode enable")
await delay(1000)
await exceutShellCmd(this.device, "cmd connectivity airplane-mode disable")
// await this.device.shell("cmd connectivity airplane-mode disable")
await delay(2000)
} catch (e) {
try {
+5
View File
@@ -36,6 +36,7 @@ const ERR_CACHE_MISS_4 = "renvoyer les données"
const ERR_EMPTY_RESPONSE = "ERR_EMPTY_RESPONSE"
const ERR_SSL_PROTOCOL = "SSL_PROTOCOL_ERROR"
const SLIDING_CAPTCHA_FR = "Pourquoi cette vérification"
const SLIDING_CAPTCHA_RETRY_FR = "RÉESSAYER"
const SLIDING_CAPTCHA_LOADING_FR = "Chargement."
const SLIDING_CAPTCHA_FR_2 = "Glissez vers la droite pour"
const SLIDING_CAPTCHA_FR_3 = "la droite pour completer le puzzle"
@@ -151,6 +152,10 @@ class OCRChecker {
// if (result.includes("rac"))
// return OCRResult.SLIDING_CAPTCHA_REFRESH
return OCRResult.SLIDING_CAPTCHA
} else if (result.includes(SLIDING_CAPTCHA_RETRY_FR)
) {
await this.deleteFile(fileName)
return OCRResult.TERMINAED
} else if (result.includes(WELCOME_MESSAGE_FR)
|| result.includes(WELCOME_MESSAGE_FR_2)
|| result.includes(WELCOME_MESSAGE_FR_3)