Skip to content

Commit 28dc1d4

Browse files
authored
fix: set shouldCloseApp's default value to true (#18)
1 parent ad50be9 commit 28dc1d4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/driver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,9 @@ export class NovaWindowsDriver extends BaseDriver<NovaWindowsDriverConstraints,
172172
if (caps.app && caps.appTopLevelWindow) {
173173
throw new errors.InvalidArgumentError('Invalid capabilities. Specify either app or appTopLevelWindow.');
174174
}
175+
if (this.caps.shouldCloseApp === undefined) {
176+
this.caps.shouldCloseApp = true; // set default value
177+
}
175178

176179
await this.startPowerShellSession();
177180

0 commit comments

Comments
 (0)