cURL
curl --request POST \ --url https://api.anchorbrowser.io/v1/sessions/{sessionId}/drag-and-drop \ --header 'Content-Type: application/json' \ --header 'anchor-api-key: <api-key>' \ --data ' { "startX": 123, "startY": 123, "endX": 123, "endY": 123, "button": "left" } '
{ "status": "<string>" }
Performs a drag and drop operation from start coordinates to end coordinates
API key passed in the header
The ID of the browser session
Starting X coordinate
Starting Y coordinate
Ending X coordinate
Ending Y coordinate
Mouse button to use
left
middle
right
Drag and drop performed successfully
Was this page helpful?