support RMX3151
This commit is contained in:
@@ -776,19 +776,6 @@ class CommandorPage {
|
|||||||
let browserInfo = await this.page.evaluate(() => {
|
let browserInfo = await this.page.evaluate(() => {
|
||||||
const ua = navigator.userAgent;
|
const ua = navigator.userAgent;
|
||||||
return ua
|
return ua
|
||||||
// let tem;
|
|
||||||
// let M = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i) || [];
|
|
||||||
// if (/trident/i.test(M[1])) {
|
|
||||||
// tem = /\brv[ :]+(\d+)/g.exec(ua) || [];
|
|
||||||
// return 'IE ' + (tem[1] || '');
|
|
||||||
// }
|
|
||||||
// if (M[1] === 'Chrome') {
|
|
||||||
// tem = ua.match(/\b(OPR|Edge)\/(\d+)/);
|
|
||||||
// if (tem != null) return tem.slice(1).join(' ').replace('OPR', 'Opera');
|
|
||||||
// }
|
|
||||||
// M = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];
|
|
||||||
// if ((tem = ua.match(/version\/(\d+)/i)) != null) M.splice(1, 1, tem[1]);
|
|
||||||
// return M.join(' ');
|
|
||||||
})
|
})
|
||||||
console.log(browserInfo); // outputs: `Chrome 62`
|
console.log(browserInfo); // outputs: `Chrome 62`
|
||||||
// save to mongoDb
|
// save to mongoDb
|
||||||
@@ -1454,6 +1441,8 @@ class CommandorPage {
|
|||||||
this.device.shell("input tap " + 385 + " " + 1930)
|
this.device.shell("input tap " + 385 + " " + 1930)
|
||||||
} else if (model === "ASUS_X00QD") {
|
} else if (model === "ASUS_X00QD") {
|
||||||
this.device.shell("input tap " + 490 + " " + 1910)
|
this.device.shell("input tap " + 490 + " " + 1910)
|
||||||
|
} else if (model === "RMX3151") {
|
||||||
|
this.device.shell("input tap " + 492 + " " + 1960)
|
||||||
} else if (model === "Mi Note 10") {
|
} else if (model === "Mi Note 10") {
|
||||||
this.device.shell("input tap " + 550 + " " + 1920)
|
this.device.shell("input tap " + 550 + " " + 1920)
|
||||||
} else if (model === "ONEPLUS A6000") {
|
} else if (model === "ONEPLUS A6000") {
|
||||||
|
|||||||
Reference in New Issue
Block a user