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