appium_find_element
Find an element by strategy and selector. Pass its ID as elementUUID to interaction tools. Returns driver attributes as JSON.
Instructions
Find an element by strategy and selector. Pass its ID as elementUUID to interaction tools. Returns driver attributes as JSON. For drivers supporting elementResponseAttributes, use appium_driver_settings to configure it with shouldUseCompactResponses=false. Prefer accessibility id > id > platform-native > xpath (last resort: slow/brittle). See strategy for platform-specific guidance. To scroll until a target is found, use appium_gesture action=scroll_to_element with the same strategy and selector, rather than repeatedly calling this tool. Vision fallback: appium_ai action=find_element (if enabled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Selector for the strategy. Do not pass natural-language descriptions; use appium_ai action=find_element for vision. | |
| strategy | Yes | accessibility id: cross-platform, fast and stable. id: Android resource-id; iOS accessibility-id alias. iOS prefer accessibility id > -ios predicate string > -ios class chain; Android prefer accessibility id > id > -android uiautomator. Use xpath last (slow/brittle). name: legacy; class name: broad matches; css selector: webview only. | |
| sessionId | No | Session ID; defaults to the active session. |