Skip to content

Commit 32dc094

Browse files
authored
Merge pull request #41 from AutomateThePlanet/releases/v1.2.0
Added logging for app initialization
2 parents f9cb5c5 + 533d966 commit 32dc094

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/commands/powershell.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,17 @@ export async function startPowerShellSession(this: NovaWindowsDriver): Promise<v
5151
await this.sendPowerShellCommand(FIND_CHILDREN_RECURSIVELY);
5252

5353
if ((!this.caps.app && !this.caps.appTopLevelWindow) || (!this.caps.app || this.caps.app.toLowerCase() === 'none')) {
54+
this.log.info(`No app or top-level window specified in capabilities. Setting root element to null.`);
5455
await this.sendPowerShellCommand(NULL_ROOT_ELEMENT);
5556
}
5657

57-
if (this.caps.app && this.caps.app.toLowerCase() !== 'none' && this.caps.app.toLowerCase() === 'root') {
58+
if (this.caps.app && this.caps.app.toLowerCase() === 'root') {
59+
this.log.info(`'root' specified as app in capabilities. Setting root element to desktop root.`);
5860
await this.sendPowerShellCommand(INIT_ROOT_ELEMENT);
5961
}
6062

6163
if (this.caps.app && this.caps.app.toLowerCase() !== 'none' && this.caps.app.toLowerCase() !== 'root') {
64+
this.log.info(`Application path specified in capabilities: ${this.caps.app}`);
6265
const envVarsSet: Set<string> = new Set();
6366
const matches = this.caps.app.matchAll(/%([^%]+)%/g);
6467

0 commit comments

Comments
 (0)