playwright_drag
Simulate dragging a web element to a target location using CSS selectors for source and destination, enabling precise browser automation in Playwright MCP Server.
Instructions
Drag an element to a target location
Input Schema
Name | Required | Description | Default |
---|---|---|---|
sourceSelector | Yes | CSS selector for the element to drag | |
targetSelector | Yes | CSS selector for the target location |
Input Schema (JSON Schema)
{
"properties": {
"sourceSelector": {
"description": "CSS selector for the element to drag",
"type": "string"
},
"targetSelector": {
"description": "CSS selector for the target location",
"type": "string"
}
},
"required": [
"sourceSelector",
"targetSelector"
],
"type": "object"
}