support moto g51
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const { cv, drawBlueRect } = require('opencv4nodejs/ut');
|
const { cv, drawBlueRect } = require('opencv4nodejs/ut');
|
||||||
// const { extractResults } = require('./dnn/ssdUtils');
|
|
||||||
|
|
||||||
if (!cv.xmodules.dnn) {
|
if (!cv.xmodules.dnn) {
|
||||||
throw new Error('exiting: opencv4nodejs compiled without dnn module');
|
throw new Error('exiting: opencv4nodejs compiled without dnn module');
|
||||||
|
|||||||
@@ -548,16 +548,9 @@ class CommandorPage {
|
|||||||
async clickValid() {
|
async clickValid() {
|
||||||
logWithDevice("clickValid() called.", this.device);
|
logWithDevice("clickValid() called.", this.device);
|
||||||
await delay(getRandomWaitTime())
|
await delay(getRandomWaitTime())
|
||||||
|
this.isFillingFields = false
|
||||||
try {
|
try {
|
||||||
if (!this.page.isClosed()) {
|
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()) {
|
if (!this.page.isClosed()) {
|
||||||
try {
|
try {
|
||||||
// remove debug flag
|
// remove debug flag
|
||||||
@@ -975,6 +968,8 @@ class CommandorPage {
|
|||||||
await this.tapForDevice(this.device, 530, 970)
|
await this.tapForDevice(this.device, 530, 970)
|
||||||
} else if (this.device.model() === "ONEPLUS A6000") {
|
} else if (this.device.model() === "ONEPLUS A6000") {
|
||||||
await this.device.shell("input tap " + 530 + " " + 1064)
|
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") {
|
} else if (this.device.model() === "M2006C3LG" || this.device.model() === "220233L2G") {
|
||||||
await this.tapForDevice(this.device, 350, 777)
|
await this.tapForDevice(this.device, 350, 777)
|
||||||
} else if (this.device.model() === "KB2003" || this.device.model() === "DE2117") {
|
} else if (this.device.model() === "KB2003" || this.device.model() === "DE2117") {
|
||||||
|
|||||||
Reference in New Issue
Block a user