swipe for oneplus 8t
This commit is contained in:
@@ -116,7 +116,7 @@ class CommandorPage {
|
||||
// } else {
|
||||
// await delay(10000);
|
||||
// if (!await this.checkIfSuccessful()) {
|
||||
let cmd = "input swipe 382 482 382 1582"
|
||||
let cmd = "input swipe 382 682 382 1682"
|
||||
logWithDevice("will send cmd:" + cmd, this.device)
|
||||
this.device.shell(cmd);
|
||||
await delay(3000);
|
||||
@@ -770,11 +770,14 @@ class CommandorPage {
|
||||
logWithDevice("this.browser.isConnected() is " + this.browser.isConnected(), this.device)
|
||||
if (this.browser.isConnected()) {
|
||||
let pages = await this.browser.pages();
|
||||
logWithDevice("get pages", this.device)
|
||||
|
||||
pages.forEach((currentPage) => {
|
||||
if (currentPage.url() === RDV_URL) {
|
||||
this.page = currentPage;
|
||||
}
|
||||
})
|
||||
logWithDevice("this.page.bringToFront();", this.device)
|
||||
await this.page.bringToFront();
|
||||
// this.page = pages;
|
||||
// this.page.await
|
||||
|
||||
Reference in New Issue
Block a user