appium-novawindows2-driver 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"powershell.d.ts","sourceRoot":"","sources":["../../../lib/commands/powershell.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAY9C,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6EnF;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyE7G;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA4CrG;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BvF"}
1
+ {"version":3,"file":"powershell.d.ts","sourceRoot":"","sources":["../../../lib/commands/powershell.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAY9C,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8EnF;AAED,wBAAsB,6BAA6B,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAyE7G;AAED,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA8CrG;AAED,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BvF"}
@@ -15,6 +15,7 @@ const INIT_ROOT_ELEMENT = /* ps1 */ `$rootElement = [AutomationElement]::RootEle
15
15
  const NULL_ROOT_ELEMENT = /* ps1 */ `$rootElement = $null`;
16
16
  const INIT_ELEMENT_TABLE = /* ps1 */ `$elementTable = New-Object System.Collections.Generic.Dictionary[[string]\`,[AutomationElement]]`;
17
17
  async function startPowerShellSession() {
18
+ this.log.debug('Starting new PowerShell session...');
18
19
  const powerShell = (0, node_child_process_1.spawn)('powershell.exe', ['-NoExit', '-Command', '-']);
19
20
  powerShell.stdout.setEncoding('utf8');
20
21
  powerShell.stdout.setEncoding('utf8');
@@ -142,6 +143,7 @@ async function sendIsolatedPowerShellCommand(command) {
142
143
  }
143
144
  async function sendPowerShellCommand(command) {
144
145
  const magicNumber = 0xF2EE;
146
+ // this.log.debug(`Sending PowerShell command: ${command.substring(0, 50)}...`);
145
147
  if (!this.powerShell) {
146
148
  this.log.warn('PowerShell session not running. It was either closed or has crashed. Attempting to start a new session...');
147
149
  await this.startPowerShellSession();
@@ -167,6 +169,7 @@ async function sendPowerShellCommand(command) {
167
169
  reject(new base_driver_1.errors.UnknownError(this.powerShellStdErr));
168
170
  }
169
171
  else {
172
+ // this.log.debug(`Received magic char, resolving command.`);
170
173
  resolve(this.powerShellStdOut.replace(`${magicChar}`, '').trim());
171
174
  }
172
175
  }
@@ -1 +1 @@
1
- {"version":3,"file":"powershell.js","sourceRoot":"","sources":["../../../lib/commands/powershell.ts"],"names":[],"mappings":";;AAaA,wDA6EC;AAED,sEAyEC;AAED,sDA4CC;AAED,gEA6BC;AAlPD,2DAA2C;AAE3C,qDAA6C;AAC7C,2CAAqE;AAErE,MAAM,iBAAiB,GAAG,SAAS,CAAC,qEAAqE,CAAC;AAC1G,MAAM,wBAAwB,GAAG,SAAS,CAAC,wKAAwK,CAAC;AACpN,MAAM,wBAAwB,GAAG,SAAS,CAAC,2CAA2C,CAAC;AACvF,MAAM,kBAAkB,GAAG,SAAS,CAAC,mQAAmQ,CAAC;AACzS,MAAM,iBAAiB,GAAG,SAAS,CAAC,iDAAiD,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AC;QACnB,OAAO;IACX,CAAC;IAED,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,KAAK,IAAI,EAAE,CAAC;QACpC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;QACzD,OAAO;IACX,CAAC;IAED,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACvD,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,OAAO,EAAE,CAAC;QACd,CAAC;QAED,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE;YAChC,OAAO,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,GAAU,EAAE,EAAE;YAC1C,MAAM,CAAC,GAAG,CAAC,CAAC;QAChB,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;IAGH,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACvB,MAAM,YAAY,CAAC;IACnB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAC;AAClE,CAAC"}
@@ -12,6 +12,7 @@ const NULL_ROOT_ELEMENT = /* ps1 */ `$rootElement = $null`;
12
12
  const INIT_ELEMENT_TABLE = /* ps1 */ `$elementTable = New-Object System.Collections.Generic.Dictionary[[string]\`,[AutomationElement]]`;
13
13
 
14
14
  export async function startPowerShellSession(this: NovaWindowsDriver): Promise<void> {
15
+ this.log.debug('Starting new PowerShell session...');
15
16
  const powerShell = spawn('powershell.exe', ['-NoExit', '-Command', '-']);
16
17
  powerShell.stdout.setEncoding('utf8');
17
18
  powerShell.stdout.setEncoding('utf8');
@@ -167,6 +168,7 @@ export async function sendIsolatedPowerShellCommand(this: NovaWindowsDriver, com
167
168
 
168
169
  export async function sendPowerShellCommand(this: NovaWindowsDriver, command: string): Promise<string> {
169
170
  const magicNumber = 0xF2EE;
171
+ // this.log.debug(`Sending PowerShell command: ${command.substring(0, 50)}...`);
170
172
 
171
173
  if (!this.powerShell) {
172
174
  this.log.warn('PowerShell session not running. It was either closed or has crashed. Attempting to start a new session...');
@@ -197,6 +199,7 @@ export async function sendPowerShellCommand(this: NovaWindowsDriver, command: st
197
199
  if (this.powerShellStdErr) {
198
200
  reject(new errors.UnknownError(this.powerShellStdErr));
199
201
  } else {
202
+ // this.log.debug(`Received magic char, resolving command.`);
200
203
  resolve(this.powerShellStdOut.replace(`${magicChar}`, '').trim());
201
204
  }
202
205
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-novawindows2-driver",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Appium driver for Windows",
5
5
  "keywords": [
6
6
  "appium",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "appium": {
39
39
  "driverName": "novawindows2",
40
- "automationName": "NovaWindows",
40
+ "automationName": "NovaWindows2",
41
41
  "platformNames": [
42
42
  "Windows"
43
43
  ],
@@ -58,4 +58,4 @@
58
58
  "typescript-eslint": "^8.46.1",
59
59
  "webdriverio": "^9.21.0"
60
60
  }
61
- }
61
+ }
package/temp_log.txt ADDED
@@ -0,0 +1,215 @@
1
+ [Appium] Welcome to Appium v3.1.2
2
+ [Appium] Non-default server args:
3
+ [Appium] { relaxedSecurityEnabled: true }
4
+ [Appium] Enabling relaxed security. All insecure features will be enabled unless explicitly disabled by --deny-insecure
5
+ [Appium] The autodetected Appium home path: D:\SecureAge\appium-novawindows-driver
6
+ [Appium] Attempting to load driver novawindows...
7
+ [Appium] Requiring driver at D:\SecureAge\appium-novawindows-driver\build\lib\driver.js
8
+ [Appium] NovaWindowsDriver has been successfully loaded in 0.296s
9
+ [Appium] Appium REST http interface listener started on http://0.0.0.0:4723
10
+ [Appium] You can provide the following URLs in your client code to connect to this server:
11
+ http://10.8.0.2:4723/
12
+ http://192.168.1.3:4723/
13
+ http://192.168.183.1:4723/
14
+ http://192.168.196.1:4723/
15
+ http://127.0.0.1:4723/ (only accessible from the same host)
16
+ [Appium] Available drivers:
17
+ [Appium] - novawindows@1.1.0 (automationName 'NovaWindows')
18
+ [Appium] No plugins have been installed. Use the "appium plugin" command to install the one(s) you want to use.
19
+ [HTTP] --> POST /session {"capabilities":{"alwaysMatch":{"appium:automationName":"NovaWindows","platformName":"Windows","appium:app":"Root","appium:newCommandTimeout":60},"firstMatch":[{}]}}
20
+ [AppiumDriver@f617] Calling AppiumDriver.createSession() with args: [{"alwaysMatch":{"appium:automationName":"NovaWindows","platformName":"Windows","appium:app":"Root","appium:newCommandTimeout":60},"firstMatch":[{}]},{"alwaysMatch":{"appium:automationName":"NovaWindows","platformName":"Windows","appium:app":"Root","appium:newCommandTimeout":60},"firstMatch":[{}]},{"alwaysMatch":{"appium:automationName":"NovaWindows","platformName":"Windows","appium:app":"Root","appium:newCommandTimeout":60},"firstMatch":[{}]}]
21
+ [AppiumDriver@f617] Event 'newSessionRequested' logged at 1766112290273 (09:44:50 GMT+0700 (Indochina Time))
22
+ [Appium] Attempting to find matching driver for automationName 'NovaWindows' and platformName 'Windows'
23
+ [Appium] The 'novawindows' driver was installed and matched caps.
24
+ [Appium] Will require it at D:\SecureAge\appium-novawindows-driver
25
+ [Appium] Requiring driver at D:\SecureAge\appium-novawindows-driver\build\lib\driver.js
26
+ [AppiumDriver@f617] Appium v3.1.2 creating new NovaWindowsDriver (v1.1.0) session
27
+ [AppiumDriver@f617] Checking BaseDriver versions for Appium and NovaWindowsDriver
28
+ [AppiumDriver@f617] Appium's BaseDriver version is 10.1.2
29
+ [AppiumDriver@f617] NovaWindowsDriver's BaseDriver version is 10.1.2
30
+ [AppiumDriver@f617] Enabling relaxed security for this session as per the server configuration. All insecure features will be enabled unless explicitly disabled by --deny-insecure
31
+ [NovaWindowsDriver@e4bb] Creating NovaWindows driver session...
32
+ [NovaWindowsDriver@e4bb]
33
+ [NovaWindowsDriver@e4bb] Creating session with W3C capabilities: {
34
+ "alwaysMatch": {
35
+ "platformName": "Windows",
36
+ "appium:automationName": "NovaWindows",
37
+ "appium:app": "Root",
38
+ "appium:newCommandTimeout": 60
39
+ },
40
+ "firstMatch": [
41
+ {}
42
+ ]
43
+ }
44
+ [f7b0f250][NovaWindowsDriver@e4bb] Session created with session id: f7b0f250-0acd-4194-aa33-1f6e08092721
45
+ [f7b0f250][NovaWindowsDriver@e4bb] Starting new PowerShell session...
46
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $OutputEncoding = [Console]::OutputEncoding = [Tex...
47
+ [f7b0f250][NovaWindowsDriver@e4bb] UTF8 encoding set.
48
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: Add-Type -AssemblyName UIAutomationClient; Add-Typ...
49
+ [f7b0f250][NovaWindowsDriver@e4bb] Assemblies added.
50
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: using namespace System.Windows.Automation...
51
+ [f7b0f250][NovaWindowsDriver@e4bb] UI Automation client namespace used.
52
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: ($cacheRequest = New-Object System.Windows.Automat...
53
+ [f7b0f250][NovaWindowsDriver@e4bb] Cache request initialized.
54
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $elementTable = New-Object System.Collections.Gene...
55
+ [f7b0f250][NovaWindowsDriver@e4bb] Element table initialized.
56
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
57
+ [f7b0f250][NovaWindowsDriver@e4bb] Page source function defined.
58
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
59
+ [f7b0f250][NovaWindowsDriver@e4bb] Find children recursively function defined.
60
+ [f7b0f250][NovaWindowsDriver@e4bb] 'root' specified as app in capabilities. Setting root element to desktop root.
61
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $rootElement = [AutomationElement]::RootElement...
62
+ [f7b0f250][NovaWindowsDriver@e4bb] Root element set to desktop root.
63
+ [f7b0f250][NovaWindowsDriver@e4bb] Started session f7b0f250-0acd-4194-aa33-1f6e08092721.
64
+ [f7b0f250][AppiumDriver@f617] New NovaWindowsDriver session created successfully, session f7b0f250-0acd-4194-aa33-1f6e08092721 added to master session list
65
+ [f7b0f250][AppiumDriver@f617] Event 'newSessionStarted' logged at 1766112291265 (09:44:51 GMT+0700 (Indochina Time))
66
+ [f7b0f250][NovaWindowsDriver@e4bb] Cached the protocol value 'W3C' for the new session f7b0f250-0acd-4194-aa33-1f6e08092721
67
+ [f7b0f250][NovaWindowsDriver@e4bb] Responding to client with driver.createSession() result: {"capabilities":{"platformName":"Windows","automationName":"NovaWindows","app":"Root","newCommandTimeout":60,"shouldCloseApp":true}}
68
+ [f7b0f250][HTTP] <-- POST /session 200 995 ms - 193 
69
+ [f7b0f250][HTTP] --> GET /session/f7b0f250-0acd-4194-aa33-1f6e08092721/window/rect 
70
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.getWindowRect() with args: ["f7b0f250-0acd-4194-aa33-1f6e08092721"]
71
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
72
+ [f7b0f250][NovaWindowsDriver@e4bb] Responding to client with driver.getWindowRect() result: {"x":0,"y":0,"width":1920,"height":1080}
73
+ [f7b0f250][HTTP] <-- GET /session/f7b0f250-0acd-4194-aa33-1f6e08092721/window/rect 200 30 ms - 50 
74
+ [f7b0f250][HTTP] --> GET /session/f7b0f250-0acd-4194-aa33-1f6e08092721/screenshot 
75
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.getScreenshot() with args: ["f7b0f250-0acd-4194-aa33-1f6e08092721"]
76
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
77
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
78
+ [f7b0f250][NovaWindowsDriver@e4bb] Responding to client with driver.getScreenshot() result: "iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAYAAADo08FDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAP+lSURBVHhe7P35exzHmeeLzn9wnzv3eaZpameJC7iKIAFuIglwAbhgIUGCAAkQJAWQFEBxFQWRhCiBi0BZArWQogXZpjbIpgVapq02xlKjhxpYnoPDbvicsW+PbY17fLpnepv2zPVz5rn3PI/uPT7vfd7IjKzIiMiszKosoAB8f/g8VRlbRi5VmZWfeiP+xbRp0wgAAAAAAAAAAAAAAAAAAAAAAMDE51/oCQAAAAAAAAAAAAAAAAAAAAAAACYmEMAAAAAAAAAAAAAAAAAAAAAAADBJgAAGAAAAAAAAAAAAAAAAAAAAAIBJAgQwAAAAAAAAAAAAAAAAAAAAAABMEiCAAQAAAAAAAAAAAAAAAAAAAABgkgABDAAAAAAAAAAAAAAAAAAAkAfmzZtHK1asoPLy8lhwHa6rtwcAAFGAAAYAAAAAAAAAAAAAAAAAAEiQBx98MCvxq8NtcFt6+wAAEAYEMAAAAAAAAAAAAAAAAAAAQIIkIX8l3JbePgAAhBFZAD/8yKM5obcHAAAAAAAAAAAAAAAAAAAw2eChm3WJmyvxh4NOUeWxa3RnaIRGR0cdvhiiO68fo8qUXjZ/pJZWUuXSlJE+UdhYUUG9L1+gj65305X96+lM8zp640IHvfTyFdqwscIoD0ChkLMAnjHjUZr56KM0M+W81/MhgAEAAAAAAAAAAAAAAAAAkB0park+lJaYERm60UIpoy0bybfvj/7dQs++97lRPxOff/AsbVEEcLwo4HLq/HCYRofv0LXTjbRyHqcV0cqGTrr2Maf3U2eZXic5ihq6qX9w2L9N90Zo6ONrdKwiORlcpxy34RuNRn6uvPbGdfrF6F360zfPUt+hDXRq52o6tauMLh2uoe/d6KJf/fVvqPe1V416ABQCOQngGalHacni...
79
+ [f7b0f250][HTTP] <-- GET /session/f7b0f250-0acd-4194-aa33-1f6e08092721/screenshot 200 76 ms - 369084 
80
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/element {"using":"xpath","value":"//*"}
81
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.findElement() with args: ["xpath","//*","f7b0f250-0acd-4194-aa33-1f6e08092721"]
82
+ [f7b0f250][NovaWindowsDriver@e4bb] Valid locator strategies for this request: id, name, xpath, tag name, class name, accessibility id, -windows uiautomation
83
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
84
+ [f7b0f250][NovaWindowsDriver@e4bb] Responding to client with driver.findElement() result: {"ELEMENT":"42.65724","element-6066-11e4-a52e-4f735466cecf":"42.65724"}
85
+ [f7b0f250][HTTP] <-- POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/element 200 19 ms - 81 
86
+ [f7b0f250][HTTP] --> GET /session/f7b0f250-0acd-4194-aa33-1f6e08092721/window 
87
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.getWindowHandle() with args: ["f7b0f250-0acd-4194-aa33-1f6e08092721"]
88
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
89
+ [f7b0f250][NovaWindowsDriver@e4bb] Responding to client with driver.getWindowHandle() result: "0x0001000c"
90
+ [f7b0f250][HTTP] <-- GET /session/f7b0f250-0acd-4194-aa33-1f6e08092721/window 200 5 ms - 22 
91
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync {"script":"powerShell","args":[{"command":"Get-Process"}]}
92
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.execute() with args: ["powerShell",[{"command":"Get-Process"}],"f7b0f250-0acd-4194-aa33-1f6e08092721"]
93
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
94
+ [f7b0f250][NovaWindowsDriver@e4bb] Responding to client with driver.execute() result: "Handles NPM(K) PM(K) WS(K) CPU(s) Id S\r\n I\r\n------- ------ ----- ----- ------ -- -\r\n 203 13 2332 11912 6688 0\r\n 201 12 1780 11280 5232 0\r\n 212 23 358840 447932 16.63 500 1\r\n 431 71 218032 269024 98.91 3460 1\r\n 368 22 11948 61736 5.59 3936 1\r\n 250 28 96892 146620 11.84 4436 1\r\n 277 16 8668 99484 0.50 4920 1\r\n 195 20 27348 115044 0.52 5948 1\r\n 1344 39 319516 367844 154.30 6968 1\r\n 364 52 146716 155092 10.22 8480 1\r\n 1621 125 419504 480524 401.88 8680 1\r\n 274 12 7804 39452 0.16 10036 1\r\n 264 28 117088 154188 4.75 10868 1\r\n 887 70 870540 950560 1,098.69 11360 1\r\n 359 29 ...
95
+ [f7b0f250][HTTP] <-- POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync 200 104 ms - 10451 
96
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync {"script":"powerShell","args":[{"command":"Get-Process; exit 0"}]}
97
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.execute() with args: ["powerShell",[{"command":"Get-Process; exit 0"}],"f7b0f250-0acd-4194-aa33-1f6e08092721"]
98
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
99
+ [f7b0f250][NovaWindowsDriver@e4bb] Encountered internal error running command: UnknownError: PowerShell process exited unexpectedly with code 0
100
+ at ChildProcess.onClose (D:\SecureAge\appium-novawindows-driver\lib\commands\powershell.ts:198:20)
101
+ at ChildProcess.emit (node:events:524:28)
102
+ at maybeClose (node:internal/child_process:1101:16)
103
+ at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
104
+ at Process.callbackTrampoline (node:internal/async_hooks:130:17)
105
+ [f7b0f250][HTTP] <-- POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync 500 113 ms - 541 
106
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync {"script":"powerShell","args":[{"command":"Get-Process; exit 0"}]}
107
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.execute() with args: ["powerShell",[{"command":"Get-Process; exit 0"}],"f7b0f250-0acd-4194-aa33-1f6e08092721"]
108
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
109
+ [f7b0f250][NovaWindowsDriver@e4bb] PowerShell session not running. It was either closed or has crashed. Attempting to start a new session...
110
+ [f7b0f250][NovaWindowsDriver@e4bb] Starting new PowerShell session...
111
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $OutputEncoding = [Console]::OutputEncoding = [Tex...
112
+ [f7b0f250][NovaWindowsDriver@e4bb] UTF8 encoding set.
113
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: Add-Type -AssemblyName UIAutomationClient; Add-Typ...
114
+ [f7b0f250][NovaWindowsDriver@e4bb] Assemblies added.
115
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: using namespace System.Windows.Automation...
116
+ [f7b0f250][NovaWindowsDriver@e4bb] UI Automation client namespace used.
117
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: ($cacheRequest = New-Object System.Windows.Automat...
118
+ [f7b0f250][NovaWindowsDriver@e4bb] Cache request initialized.
119
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $elementTable = New-Object System.Collections.Gene...
120
+ [f7b0f250][NovaWindowsDriver@e4bb] Element table initialized.
121
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
122
+ [f7b0f250][NovaWindowsDriver@e4bb] Page source function defined.
123
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
124
+ [f7b0f250][NovaWindowsDriver@e4bb] Find children recursively function defined.
125
+ [f7b0f250][NovaWindowsDriver@e4bb] 'root' specified as app in capabilities. Setting root element to desktop root.
126
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $rootElement = [AutomationElement]::RootElement...
127
+ [f7b0f250][NovaWindowsDriver@e4bb] Root element set to desktop root.
128
+ [f7b0f250][NovaWindowsDriver@e4bb] Encountered internal error running command: UnknownError: PowerShell process exited unexpectedly with code 0
129
+ at ChildProcess.onClose (D:\SecureAge\appium-novawindows-driver\lib\commands\powershell.ts:198:20)
130
+ at ChildProcess.emit (node:events:524:28)
131
+ at maybeClose (node:internal/child_process:1101:16)
132
+ at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
133
+ at Process.callbackTrampoline (node:internal/async_hooks:130:17)
134
+ [f7b0f250][HTTP] <-- POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync 500 1083 ms - 541 
135
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync {"script":"powerShell","args":[{"command":"Get-Process; exit 0"}]}
136
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.execute() with args: ["powerShell",[{"command":"Get-Process; exit 0"}],"f7b0f250-0acd-4194-aa33-1f6e08092721"]
137
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
138
+ [f7b0f250][NovaWindowsDriver@e4bb] PowerShell session not running. It was either closed or has crashed. Attempting to start a new session...
139
+ [f7b0f250][NovaWindowsDriver@e4bb] Starting new PowerShell session...
140
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $OutputEncoding = [Console]::OutputEncoding = [Tex...
141
+ [f7b0f250][NovaWindowsDriver@e4bb] UTF8 encoding set.
142
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: Add-Type -AssemblyName UIAutomationClient; Add-Typ...
143
+ [f7b0f250][NovaWindowsDriver@e4bb] Assemblies added.
144
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: using namespace System.Windows.Automation...
145
+ [f7b0f250][NovaWindowsDriver@e4bb] UI Automation client namespace used.
146
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: ($cacheRequest = New-Object System.Windows.Automat...
147
+ [f7b0f250][NovaWindowsDriver@e4bb] Cache request initialized.
148
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $elementTable = New-Object System.Collections.Gene...
149
+ [f7b0f250][NovaWindowsDriver@e4bb] Element table initialized.
150
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
151
+ [f7b0f250][NovaWindowsDriver@e4bb] Page source function defined.
152
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
153
+ [f7b0f250][NovaWindowsDriver@e4bb] Find children recursively function defined.
154
+ [f7b0f250][NovaWindowsDriver@e4bb] 'root' specified as app in capabilities. Setting root element to desktop root.
155
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $rootElement = [AutomationElement]::RootElement...
156
+ [f7b0f250][NovaWindowsDriver@e4bb] Root element set to desktop root.
157
+ [f7b0f250][NovaWindowsDriver@e4bb] Encountered internal error running command: UnknownError: PowerShell process exited unexpectedly with code 0
158
+ at ChildProcess.onClose (D:\SecureAge\appium-novawindows-driver\lib\commands\powershell.ts:198:20)
159
+ at ChildProcess.emit (node:events:524:28)
160
+ at maybeClose (node:internal/child_process:1101:16)
161
+ at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
162
+ at Process.callbackTrampoline (node:internal/async_hooks:130:17)
163
+ [f7b0f250][HTTP] <-- POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync 500 1046 ms - 541 
164
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync {"script":"powerShell","args":[{"command":"Get-Process; exit 0"}]}
165
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.execute() with args: ["powerShell",[{"command":"Get-Process; exit 0"}],"f7b0f250-0acd-4194-aa33-1f6e08092721"]
166
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
167
+ [f7b0f250][NovaWindowsDriver@e4bb] PowerShell session not running. It was either closed or has crashed. Attempting to start a new session...
168
+ [f7b0f250][NovaWindowsDriver@e4bb] Starting new PowerShell session...
169
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $OutputEncoding = [Console]::OutputEncoding = [Tex...
170
+ [f7b0f250][NovaWindowsDriver@e4bb] UTF8 encoding set.
171
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: Add-Type -AssemblyName UIAutomationClient; Add-Typ...
172
+ [f7b0f250][NovaWindowsDriver@e4bb] Assemblies added.
173
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: using namespace System.Windows.Automation...
174
+ [f7b0f250][NovaWindowsDriver@e4bb] UI Automation client namespace used.
175
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: ($cacheRequest = New-Object System.Windows.Automat...
176
+ [f7b0f250][NovaWindowsDriver@e4bb] Cache request initialized.
177
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $elementTable = New-Object System.Collections.Gene...
178
+ [f7b0f250][NovaWindowsDriver@e4bb] Element table initialized.
179
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
180
+ [f7b0f250][NovaWindowsDriver@e4bb] Page source function defined.
181
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
182
+ [f7b0f250][NovaWindowsDriver@e4bb] Find children recursively function defined.
183
+ [f7b0f250][NovaWindowsDriver@e4bb] 'root' specified as app in capabilities. Setting root element to desktop root.
184
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $rootElement = [AutomationElement]::RootElement...
185
+ [f7b0f250][NovaWindowsDriver@e4bb] Root element set to desktop root.
186
+ [f7b0f250][NovaWindowsDriver@e4bb] Encountered internal error running command: UnknownError: PowerShell process exited unexpectedly with code 0
187
+ at ChildProcess.onClose (D:\SecureAge\appium-novawindows-driver\lib\commands\powershell.ts:198:20)
188
+ at ChildProcess.emit (node:events:524:28)
189
+ at maybeClose (node:internal/child_process:1101:16)
190
+ at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
191
+ at Process.callbackTrampoline (node:internal/async_hooks:130:17)
192
+ [f7b0f250][HTTP] <-- POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/execute/sync 500 1097 ms - 541 
193
+ [f7b0f250][HTTP] --> POST /session/f7b0f250-0acd-4194-aa33-1f6e08092721/element {"using":"xpath","value":"//Button[@Name=\"Start\"]"}
194
+ [f7b0f250][NovaWindowsDriver@e4bb] Calling AppiumDriver.findElement() with args: ["xpath","//Button[@Name=\"Start\"]","f7b0f250-0acd-4194-aa33-1f6e08092721"]
195
+ [f7b0f250][NovaWindowsDriver@e4bb] Valid locator strategies for this request: id, name, xpath, tag name, class name, accessibility id, -windows uiautomation
196
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
197
+ [f7b0f250][NovaWindowsDriver@e4bb] PowerShell session not running. It was either closed or has crashed. Attempting to start a new session...
198
+ [f7b0f250][NovaWindowsDriver@e4bb] Starting new PowerShell session...
199
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $OutputEncoding = [Console]::OutputEncoding = [Tex...
200
+ [f7b0f250][NovaWindowsDriver@e4bb] UTF8 encoding set.
201
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: Add-Type -AssemblyName UIAutomationClient; Add-Typ...
202
+ [f7b0f250][NovaWindowsDriver@e4bb] Assemblies added.
203
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: using namespace System.Windows.Automation...
204
+ [f7b0f250][NovaWindowsDriver@e4bb] UI Automation client namespace used.
205
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: ($cacheRequest = New-Object System.Windows.Automat...
206
+ [f7b0f250][NovaWindowsDriver@e4bb] Cache request initialized.
207
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $elementTable = New-Object System.Collections.Gene...
208
+ [f7b0f250][NovaWindowsDriver@e4bb] Element table initialized.
209
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
210
+ [f7b0f250][NovaWindowsDriver@e4bb] Page source function defined.
211
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: (Invoke-Expression -Command ([Text.Encoding]::UTF8...
212
+ [f7b0f250][NovaWindowsDriver@e4bb] Find children recursively function defined.
213
+ [f7b0f250][NovaWindowsDriver@e4bb] 'root' specified as app in capabilities. Setting root element to desktop root.
214
+ [f7b0f250][NovaWindowsDriver@e4bb] Sending PowerShell command: $rootElement = [AutomationElement]::RootElement...
215
+ [f7b0f250][NovaWindowsDriver@e4bb] Root element set to desktop root.
package/verify_driver.js CHANGED
@@ -8,7 +8,7 @@ async function main() {
8
8
  port: 4723,
9
9
  path: '/',
10
10
  capabilities: {
11
- "appium:automationName": "NovaWindows",
11
+ "appium:automationName": "NovaWindows2",
12
12
  "platformName": "Windows",
13
13
  "appium:app": "Root", // Using Root to attach to desktop, verify this is supported
14
14
  "appium:newCommandTimeout": 60
@@ -62,6 +62,8 @@ async function main() {
62
62
  console.log(`Found root element with ID: ${element.elementId}`);
63
63
  }
64
64
 
65
+
66
+
65
67
  // 5. Get Window Handle
66
68
  console.log('Test 5: Get Window Handle');
67
69
  const handle = await client.getWindowHandle();
@@ -82,6 +84,50 @@ async function main() {
82
84
  console.log(`Test 7 encountered error as expected (or unexpected): ${e.message}`);
83
85
  }
84
86
 
87
+ // 7.5 Recovery Check
88
+ console.log('Test 7.5: Recovery Check with simple command');
89
+ console.log('Waiting 2 seconds...');
90
+ await new Promise(resolve => setTimeout(resolve, 2000));
91
+ try {
92
+ const output = await client.executeScript('powerShell', [{ command: 'Get-Process | Select-Object -First 1' }]);
93
+ console.log('Test 7.5 passed. Recovery seems to work for simple commands.');
94
+ } catch (e) {
95
+ console.error('Test 7.5 failed:', e.message);
96
+ }
97
+
98
+ // 8. Click on Start button (Safe Locator)
99
+ console.log('Test 8: Click on Start button (Safe Locator)');
100
+ console.log('Waiting 3 seconds before Test 8...');
101
+ await new Promise(resolve => setTimeout(resolve, 3000));
102
+
103
+ // Use direct child path to avoid deep recursion on Root
104
+ let startButton;
105
+ try {
106
+ // Try to find Taskbar by class name (direct child of Root usually)
107
+ // Then find Start button inside it.
108
+ // Note: XPath `//` is recursive. We want direct child.
109
+ // But client.$ calls `xpathToElIdOrIds`.
110
+ // If we use `xpath`, we can force direct children?
111
+ // `/Pane[@ClassName="Shell_TrayWnd"]` is absolute path from Root?
112
+ // No, `xpath-analyzer` treats `/` as absolute from root.
113
+ // Let's try finding Taskbar first using absolute path.
114
+
115
+ // However, client.$ prefixing is tricky if we don't start with /
116
+ // If we start with /, it's absolute.
117
+
118
+ const taskbar = await client.$('/Pane[@ClassName="Shell_TrayWnd"]');
119
+ startButton = await taskbar.$('Button[@Name="Start"]');
120
+ } catch (e) {
121
+ console.log('Safe locator failed: ' + e.message);
122
+ }
123
+
124
+ if (!startButton || startButton.error) {
125
+ console.log('Could not find Start button with safe locator. Skipping click.');
126
+ } else {
127
+ await startButton.click();
128
+ console.log('Clicked Start button (Test 8 passed).');
129
+ }
130
+
85
131
  } catch (err) {
86
132
  console.error('Test execution failed:', err);
87
133
  } finally {