Skip to content

Commit

Permalink
fix: Do not force stop app on session quit if noReset is true (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
mykola-mokhnach authored Mar 25, 2022
1 parent 46bca90 commit a757f81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a757f81

Please sign in to comment.