From 25696e4f781ffcf21ecc64fcb625df0bf1ac9595 Mon Sep 17 00:00:00 2001 From: Lei PAN Date: Fri, 7 Jul 2023 13:25:08 +0200 Subject: [PATCH] add await for shell command --- src/workers/CommandorPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 6adbb79..1a4a1d2 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -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)