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
Copy file name to clipboardExpand all lines: README.md
+54-7Lines changed: 54 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -516,31 +516,78 @@ Position | Type | Description | Example
516
516
517
517
### windows: startRecordingScreen
518
518
519
-
To be implemented.
519
+
Starts screen recording using the **bundled ffmpeg** included with the driver. There is no system PATH fallback: if the bundle is not present (e.g. driver was not installed via npm with dependencies), screen recording is not available and the driver reports a clear error.
520
520
521
521
### windows: stopRecordingScreen
522
522
523
-
To be implemented.
523
+
Stops the current screen recording and returns the video (base64 or uploads to a remote path if specified).
524
524
525
525
### windows: deleteFile
526
526
527
-
To be implemented.
527
+
Deletes a file on the Windows machine. Uses PowerShell `Remove-Item -Path ... -Force`. Paths containing `[`, `]`, or `?` use `-LiteralPath` for correct interpretation.
528
+
529
+
#### Arguments
530
+
531
+
Name | Type | Required | Description | Example
532
+
--- | --- | --- | --- | ---
533
+
path | string | yes | Absolute or relative path to the file to delete. | `C:\Temp\file.txt`
528
534
529
535
### windows: deleteFolder
530
536
531
-
To be implemented.
537
+
Deletes a folder on the Windows machine. Uses PowerShell `Remove-Item -Path ... -Force` with optional `-Recurse`. Paths containing `[`, `]`, or `?` use `-LiteralPath`.
538
+
539
+
#### Arguments
540
+
541
+
Name | Type | Required | Description | Example
542
+
--- | --- | --- | --- | ---
543
+
path | string | yes | Absolute or relative path to the folder to delete. | `C:\Temp\MyFolder`
544
+
recursive | boolean | no | If true (default), delete contents recursively. If false, only remove the folder when empty. | `true`
532
545
533
546
### windows: launchApp
534
547
535
-
To be implemented.
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
+
550
+
This command takes no arguments.
551
+
552
+
#### Example
553
+
554
+
```javascript
555
+
// Re-launch the app set in the session capability
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.
Performs a click-and-drag: move to the start position, press the mouse button, move to the end position over the given duration, then release. Start and end can be specified by element (center or offset) or by screen coordinates. Uses the same Windows input APIs as other pointer actions.
575
+
576
+
#### Arguments
577
+
578
+
Name | Type | Required | Description | Example
579
+
--- | --- | --- | --- | ---
580
+
startElementId | string | no* | Element ID for drag start. Use *or* startX/startY. | `1.2.3.4.5`
581
+
startX | number | no* | X coordinate for drag start (with startY). | `100`
582
+
startY | number | no* | Y coordinate for drag start (with startX). | `200`
583
+
endElementId | string | no* | Element ID for drag end. Use *or* endX/endY. | `1.2.3.4.6`
584
+
endX | number | no* | X coordinate for drag end (with endY). | `300`
585
+
endY | number | no* | Y coordinate for drag end (with endX). | `400`
586
+
modifierKeys | string or string[] | no | Keys to hold during drag: `shift`, `ctrl`, `alt`, `win`. | `["ctrl"]`
587
+
durationMs | number | no | Duration of the move from start to end (default: 500). | `300`
0 commit comments