From a757f815bd8d5bf80a853b5d2cb6230584206981 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Fri, 25 Mar 2022 18:13:33 +0100 Subject: [PATCH] fix: Do not force stop app on session quit if noReset is true (#507) --- lib/driver.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/driver.js b/lib/driver.js index ba5988c46..b0fde9b89 100644 --- a/lib/driver.js +++ b/lib/driver.js @@ -647,7 +647,9 @@ class AndroidUiautomator2Driver extends BaseDriver { } } if (this.opts.appPackage) { - if (!this.isChromeSession && !this.opts.dontStopAppOnReset) { + if (!this.isChromeSession + && !this.opts.dontStopAppOnReset + && !this.opts.noReset) { try { await this.adb.forceStop(this.opts.appPackage); } catch (err) {