support moto g51
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user