support moto g51

This commit is contained in:
2023-11-08 11:22:16 +01:00
parent 24db353002
commit 90d1daf154
2 changed files with 3 additions and 9 deletions
+3 -8
View File
@@ -548,16 +548,9 @@ class CommandorPage {
async clickValid() {
logWithDevice("clickValid() called.", this.device);
await delay(getRandomWaitTime())
this.isFillingFields = false
try {
if (!this.page.isClosed()) {
// if (!this.isTerminated && !this.page.isClosed()) {
// this.page.evaluate(() => {
// let element = document.getElementsByClassName("btn")[0];
// if (typeof element !== 'undefined')
// document.getElementsByClassName("btn")[0].focus();
// })
// }
// await delay(getRandomWaitTime())
if (!this.page.isClosed()) {
try {
// remove debug flag
@@ -975,6 +968,8 @@ class CommandorPage {
await this.tapForDevice(this.device, 530, 970)
} else if (this.device.model() === "ONEPLUS A6000") {
await this.device.shell("input tap " + 530 + " " + 1064)
} else if (this.device.model() === "moto g51 5G") {
await this.tapForDevice(this.device, 500, 1080)
} else if (this.device.model() === "M2006C3LG" || this.device.model() === "220233L2G") {
await this.tapForDevice(this.device, 350, 777)
} else if (this.device.model() === "KB2003" || this.device.model() === "DE2117") {