drag
Performs a physical touch or mouse drag gesture from (fromX, fromY) to (toX, toY) over durationMs.
Example Usage
drag(fromX = 100.0, fromY = 500.0, toX = 100.0, toY = 100.0, durationMs = 400L)Parameters
Starting X pixel coordinate.
Starting Y pixel coordinate.
Ending X pixel coordinate.
Ending Y pixel coordinate.
Gesture movement duration in milliseconds (default 300ms).
Drags the UI element matching string tag by moving it by (offsetX, offsetY) pixels.
Example Usage
drag("volume_slider", offsetX = 50.0, offsetY = 0.0)Parameters
The testTag string or visible text of the element to drag.
Horizontal pixel movement offset.
Vertical pixel movement offset.
Gesture duration in milliseconds (default 300ms).
Drags the UI element matching selector by moving it by (offsetX, offsetY) pixels.
Advanced variant using explicit selectors.
Example Usage
drag(tag("thumb_handle"), offsetX = 100.0, offsetY = 0.0)Parameters
Explicit selector targeting the element to drag.
Horizontal pixel movement offset.
Vertical pixel movement offset.
Gesture duration in milliseconds (default 300ms).