diff --git a/lib/webdriveragent.js b/lib/webdriveragent.js index 11aec45f9..113269228 100644 --- a/lib/webdriveragent.js +++ b/lib/webdriveragent.js @@ -309,9 +309,9 @@ class WebDriverAgent { async _launchViaDevicectl(opts = {}) { const {env} = opts; - await this.device.devicectl.launchApp({ - bundleId: this.bundleIdForXctest, env, terminateExisting: true, - }); + await this.device.devicectl.launchApp( + this.bundleIdForXctest, { env, terminateExisting: true } + ); // Launching app via decictl does not wait for the app start. // We should wait for the app start by ourselves.