drag¶
Drag and drop GUI elements from source to destination.
Usage Example¶
actions:
# Drag by coordinates
- drag:
src:
coordinates: [100, 200]
dst:
coordinates: [300, 400]
description: "Drag file to trash"
# Drag by image
- drag:
src:
image: "file_icon.png"
dst:
image: "trash_icon.png"
description: "Drag file icon to trash"
Parameters¶
Parameter |
Type |
Description |
|---|---|---|
|
Target |
Source element to drag from (required) |
|
Target |
Destination to drag to (required) |
|
string |
Human-readable description (optional) |
Target Options¶
Both src and dst support:
image: Reference image pathtext: Text to find via OCRcoordinates: [x, y] pixel coordinates
Notes¶
Drag operation simulates mouse press, move, and release
Useful for file operations, UI rearrangement, and drag-drop interfaces