browser_drag_drop
Perform a mouse drag operation from start coordinates to end coordinates. Used for slider CAPTCHAs, puzzle solving, canvas drawing, and custom drag interactions. Uses realistic mouse movement with bezier curves. For HTML5 draggable elements, use browser_html5_drag_drop instead.
Usage Example
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
start_xnumberrequiredX coordinate (in pixels from left edge) where the drag starts. Use browser_get_bounding_box to find element positions
start_ynumberrequiredY coordinate (in pixels from top edge) where the drag starts
end_xnumberrequiredX coordinate (in pixels from left edge) where the drag ends (drop location)
end_ynumberrequiredY coordinate (in pixels from top edge) where the drag ends (drop location)
Optional
mid_pointsstringOptional array of intermediate [x, y] coordinates for the drag path. Creates a more realistic drag movement through multiple waypoints. Format: [[x1, y1], [x2, y2], ...]. Example: [[300, 200], [400, 250]]
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}