browser_drag_and_drop
Drag elements from one location to another on web pages using locator strategies for automated testing and interaction.
Instructions
Perform drag and drop between two elements
Input Schema
Name | Required | Description | Default |
---|---|---|---|
by | Yes | Locator strategy to find element | |
targetBy | Yes | Locator strategy to find target element | |
targetValue | Yes | Value for the target locator strategy | |
timeout | No | Maximum time to wait for element in milliseconds | |
value | Yes | Value for the locator strategy |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"by": {
"description": "Locator strategy to find element",
"enum": [
"id",
"css",
"xpath",
"name",
"tag",
"class",
"link",
"partialLink"
],
"type": "string"
},
"targetBy": {
"description": "Locator strategy to find target element",
"enum": [
"id",
"css",
"xpath",
"name",
"tag",
"class",
"link",
"partialLink"
],
"type": "string"
},
"targetValue": {
"description": "Value for the target locator strategy",
"type": "string"
},
"timeout": {
"description": "Maximum time to wait for element in milliseconds",
"type": "number"
},
"value": {
"description": "Value for the locator strategy",
"type": "string"
}
},
"required": [
"by",
"value",
"targetBy",
"targetValue"
],
"type": "object"
}