add await for shell command
This commit is contained in:
@@ -136,7 +136,7 @@ class CommandorPage {
|
||||
async loadPage() {
|
||||
logWithDevice(this.device.serial() + ":loadPage() called, with port:" + this.port, this.device);
|
||||
try {
|
||||
this.device.shell("am start -n com.android.chrome/com.google.android.apps.chrome.Main")
|
||||
await this.device.shell("am start -n com.android.chrome/com.google.android.apps.chrome.Main")
|
||||
await delay(5 * 1000);
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
|
||||
Reference in New Issue
Block a user