drag
Automate drag-and-drop actions in Firefox using Playwright by specifying coordinates, offsets, and duration. Ideal for browser testing and debugging multi-tab workflows.
Instructions
Perform drag operation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
duration | No | ||
fromCoordinates | No | ||
offsetX | No | ||
offsetY | No | ||
selector | No | ||
steps | No | ||
tabId | No | ||
toCoordinates | No |
Input Schema (JSON Schema)
{
"properties": {
"duration": {
"default": 0,
"type": "number"
},
"fromCoordinates": {
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
},
"offsetX": {
"type": "number"
},
"offsetY": {
"type": "number"
},
"selector": {
"type": "string"
},
"steps": {
"default": 1,
"type": "number"
},
"tabId": {
"type": "string"
},
"toCoordinates": {
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
}
},
"type": "object"
}
},
"type": "object"
}