drag_and_drop
Move a web element onto a target location by simulating drag-and-drop with CSS selectors, enabling automated testing of interactive UI components.
Instructions
Drag one element and drop it onto another.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_selector": "<source_selector>",
"target_selector": "<target_selector>"
},
"name": "drag_and_drop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | css | |
| source_selector | Yes | ||
| target_selector | Yes |