You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix multiple bugs: patternGetValue missing return, clipboard PS quoting, regex group accessor, command binding to prototype vs instance, isolated PS shared buffers, mouseScroll event not enqueued, getDeviceTime signature mismatch; add windows: getWindowElement command;
Implement end to end tests with real calculator, notepad and todo apps
Copy file name to clipboardExpand all lines: README.md
+10-39Lines changed: 10 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -545,57 +545,28 @@ recursive | boolean | no | If true (default), delete contents recursively. If fa
545
545
546
546
### windows: launchApp
547
547
548
-
Launches an application and waits for it to start. Supports both classic Win32 apps (by path) and UWP apps (by App User Model ID).
548
+
Re-launches the application configured in the `app` session capability. The app path or App User Model ID (AUMID) must have been set when the session was created. Typically used to reopen an app after it has been closed with `windows: closeApp`.
549
549
550
-
#### Arguments
551
-
552
-
Name | Type | Required | Description | Example
553
-
--- | --- | --- | --- | ---
554
-
app | string | yes | Path to the executable or UWP App User Model ID (AUMID). Classic format: `C:\Path\To\app.exe`. UWP format: `Microsoft.WindowsCalculator_8wekyb3d8bbwe!App` | notepad.exe
555
-
appArguments | string | no | Command-line arguments to pass to the application. | --some-flag
Terminates a running application by process ID, process name, or window handle. All three methods force-kill the process (same outcome). For graceful window close, use `windows: close` with an element. Exactly one identifier must be provided.
578
-
579
-
#### Arguments
580
-
581
-
Name | Type | Required | Description | Example
582
-
--- | --- | --- | --- | ---
583
-
processId | number | no | Process ID (PID) of the application to terminate. Uses `Stop-Process -Id`. | 12345
584
-
processName | string | no | Process name (e.g. executable name without extension). Terminates all processes with that name. Uses `Stop-Process -Name`. | notepad
585
-
windowHandle | string or number | no | Native window handle of the application window. Resolves the window to its process ID, then terminates it via `Stop-Process -Id`. Accepts hex string (e.g. `"0x12345678"`) or number. | 0x12345678
561
+
Closes the current root application window by sending a close command via the Windows UI Automation WindowPattern. Clears the root element reference in the session afterward. Throws a `NoSuchWindowError` if no active window is found.
0 commit comments