scroll
Scroll in a specified direction on a scrollable container to locate an element by ID or text. Supports Android and iOS, customizable speed, and time limits for precise automation.
Instructions
Scroll in a direction on a scrollable container, optionally to find an element (supports text and selectors)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
containerElementId | Yes | Element ID to scroll until visible | |
direction | Yes | Scroll direction | |
lookFor | No | What we're searching for while scrolling | |
platform | Yes | Platform of the device | |
speed | No | Scroll speed |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"containerElementId": {
"description": "Element ID to scroll until visible",
"type": "string"
},
"direction": {
"description": "Scroll direction",
"enum": [
"up",
"down",
"left",
"right"
],
"type": "string"
},
"lookFor": {
"additionalProperties": false,
"description": "What we're searching for while scrolling",
"properties": {
"elementId": {
"description": "ID of the element to look for while scrolling",
"type": "string"
},
"maxTime": {
"description": "Maximum amount of time to spend scrolling, (default 10 seconds)",
"type": "number"
},
"text": {
"description": "Optional text to look for while scrolling",
"type": "string"
}
},
"type": "object"
},
"platform": {
"description": "Platform of the device",
"enum": [
"android",
"ios"
],
"type": "string"
},
"speed": {
"description": "Scroll speed",
"enum": [
"slow",
"normal",
"fast"
],
"type": "string"
}
},
"required": [
"containerElementId",
"direction",
"platform"
],
"type": "object"
}