Device scroll to element
device_scroll_to_elementScroll the screen until an element matching ANY of the provided locators (text, contentDesc, resourceId) appears, then return its coordinates in PHYSICAL pixels. Scrolls up to maxScrolls times.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Visible text of the element (matches text or content-desc) | |
| udid | Yes | Device serial number (UDID) | |
| direction | No | Scroll direction (default: down) | |
| maxScrolls | No | Max scroll attempts (default: 5) | |
| resourceId | No | Resource ID (e.g. com.android.settings:id/switch_widget) | |
| contentDesc | No | Content description / accessibility label |