support the asus telephone
This commit is contained in:
@@ -786,10 +786,7 @@ class CommandorPage {
|
||||
break;
|
||||
case OCRResult.PAGE_OPTIMIZATION:
|
||||
logWithDevice("PAGE_OPTIMIZATION", this.device)
|
||||
this.device.shell("input tap " + 800 + " " + 2215)
|
||||
await delay(2000);
|
||||
this.device.shell("input tap " + 800 + " " + 2215)
|
||||
await delay(1000);
|
||||
await this.skipOptimizationPage();
|
||||
await this.checkResultWithOcr();
|
||||
break;
|
||||
case OCRResult.GOOGLE_DISCONNECT:
|
||||
@@ -817,6 +814,7 @@ class CommandorPage {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
async clickOnConfirmBtn() {
|
||||
if (this.device.model() === "CPH2219") {
|
||||
this.device.shell("input tap " + 900 + " " + 1532)
|
||||
@@ -845,6 +843,22 @@ class CommandorPage {
|
||||
// await this.browser.close();
|
||||
}
|
||||
|
||||
async skipOptimizationPage() {
|
||||
logWithDevice("skipOptimizationPage", this.device)
|
||||
let model = this.device.model();
|
||||
if (model === "ASUS_X00QD") {
|
||||
this.device.shell("input tap " + 800 + " " + 2100)
|
||||
await delay(2000);
|
||||
this.device.shell("input tap " + 800 + " " + 2100)
|
||||
await delay(1000);
|
||||
} else {
|
||||
this.device.shell("input tap " + 800 + " " + 2215)
|
||||
await delay(2000);
|
||||
this.device.shell("input tap " + 800 + " " + 2215)
|
||||
await delay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
async tapLaterBtn() {
|
||||
logWithDevice("tapLaterBtn", this.device)
|
||||
let model = this.device.model();
|
||||
|
||||
Reference in New Issue
Block a user