mouse_drag
Drag the real mouse between two absolute screen coordinates, enabling OS-level drag actions in the visible desktop or native UI. Specify start and end points in physical pixels.
Instructions
Drag the real mouse from one point to another, both in absolute virtual-desktop PHYSICAL screen pixels (see mouse_click for how that differs from page_drag's CSS pixels). Either endpoint on no display is refused with coordinates_off_screen. Safe mode requires one-action approval; lab skips prompting by default and uses session approval only when BROWSERTAP_LAB_NO_ELICIT is explicitly disabled. By default BTAP foregrounds and verifies the selected browser tab after the quiet-input check; prefer an explicit session_id for browser input. activate_session='none' is only for intentional input to the already-visible desktop or native UI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| button | No | left | |
| duration | No | ||
| session_id | No | ||
| activate_session | No | current |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||