swipeOnElement
Use this tool to simulate swiping gestures on a specific mobile element in a chosen direction and duration, supporting both Android and iOS platforms for automation testing.
Instructions
Swipe on a specific element
Input Schema
Name | Required | Description | Default |
---|---|---|---|
containerElementId | No | Container element ID to restrict the search within | |
direction | Yes | Direction to swipe | |
duration | Yes | Duration of the swipe in milliseconds | |
elementId | Yes | ID of the element to swipe on | |
platform | Yes | Platform of the device |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"containerElementId": {
"description": "Container element ID to restrict the search within",
"type": "string"
},
"direction": {
"description": "Direction to swipe",
"enum": [
"up",
"down",
"left",
"right"
],
"type": "string"
},
"duration": {
"description": "Duration of the swipe in milliseconds",
"type": "number"
},
"elementId": {
"description": "ID of the element to swipe on",
"type": "string"
},
"platform": {
"description": "Platform of the device",
"enum": [
"android",
"ios"
],
"type": "string"
}
},
"required": [
"elementId",
"direction",
"duration",
"platform"
],
"type": "object"
}