support mi 5s
This commit is contained in:
@@ -110,12 +110,6 @@ class CommandorPage {
|
||||
break;
|
||||
case OCRResult.TO_REFRESH:
|
||||
logWithDevice("will reload page", this.device)
|
||||
// if (this.browser.isConnected()) {
|
||||
// await this.page.reload();
|
||||
// await this.checkIfSuccessful()
|
||||
// } else {
|
||||
// await delay(10000);
|
||||
// if (!await this.checkIfSuccessful()) {
|
||||
let cmd = "input swipe 382 682 382 1682"
|
||||
logWithDevice("will send cmd:" + cmd, this.device)
|
||||
this.device.shell(cmd);
|
||||
@@ -485,6 +479,7 @@ class CommandorPage {
|
||||
}
|
||||
} catch (e) {
|
||||
log(e);
|
||||
await this.checkResultWithOcr()
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -734,7 +729,8 @@ class CommandorPage {
|
||||
if (isSuccessful) {
|
||||
checkResult = await this.ocrChecker.get_result();
|
||||
} else {
|
||||
this.isTerminated = true
|
||||
await this.checkResultWithOcr()
|
||||
// this.isTerminated = true
|
||||
}
|
||||
// await this.checkResultWithOcr()
|
||||
})
|
||||
@@ -855,7 +851,10 @@ class CommandorPage {
|
||||
OCRResult.GOOGLE_DISCONNECT
|
||||
:
|
||||
logWithDevice("GOOGLE_DISCONNECT", this.device)
|
||||
this.device.shell("input tap " + 411 + " " + 2100)
|
||||
if (this.device.model() === "MI 5s") {
|
||||
this.device.shell("input tap " + 550 + " " + 1740)
|
||||
} else
|
||||
this.device.shell("input tap " + 411 + " " + 2100)
|
||||
await delay(2000);
|
||||
await this.checkResultWithOcr();
|
||||
break
|
||||
@@ -896,6 +895,8 @@ class CommandorPage {
|
||||
async clickOnConfirmBtn() {
|
||||
if (this.device.model() === "CPH2219") {
|
||||
this.device.shell("input tap " + 900 + " " + 1532)
|
||||
} else if (this.device.model() === "MI 5s") {
|
||||
this.device.shell("input tap " + 925 + " " + 1325)
|
||||
} else
|
||||
this.device.shell("input tap " + 933 + " " + 1538)
|
||||
await delay(2000);
|
||||
@@ -934,6 +935,11 @@ class CommandorPage {
|
||||
await delay(2000);
|
||||
this.device.shell("input tap " + 818 + " " + 2140)
|
||||
await delay(1000);
|
||||
} else if (model === "MI 5s") {
|
||||
this.device.shell("input tap " + 790 + " " + 1807)
|
||||
await delay(2000);
|
||||
this.device.shell("input tap " + 790 + " " + 1807)
|
||||
await delay(1000);
|
||||
} else {
|
||||
this.device.shell("input tap " + 800 + " " + 2215)
|
||||
await delay(2000);
|
||||
@@ -954,9 +960,11 @@ class CommandorPage {
|
||||
this.device.shell("input tap " + 550 + " " + 1920)
|
||||
} else if (model === "ONEPLUS A6000") {
|
||||
this.device.shell("input tap " + 535 + " " + 1945)
|
||||
} else if (model === "MI 5s") {
|
||||
this.device.shell("input tap " + 510 + " " + 1615)
|
||||
} else
|
||||
this.device.shell("input tap " + 385 + " " + 2050)
|
||||
await delay(2000);
|
||||
await delay(1000);
|
||||
}
|
||||
|
||||
async enableDisableAirPlanMode() {
|
||||
|
||||
Reference in New Issue
Block a user