Skip to content

Conversation

jpsim
Copy link

@jpsim jpsim commented Oct 12, 2025

Improve element detection to include interactive elements without visible text,
and add convenient tool to find and tap elements by query.

Android enhancements:

  • Add clickable, focusable, enabled, selected, package fields to UiAutomatorXmlNode
  • Include clickable/focusable elements (buttons, icons, views) in element detection
  • Change default element type from 'text' to 'element' for more accurate categorization

New mobile_tap_element tool:

  • Search for elements by text, label, name, value, or identifier
  • Case-insensitive matching
  • Provides helpful errors when no match or multiple matches found
  • Automatically taps center of matching element
  • Works on both iOS and Android

Co-Authored-By: @benlmyers

Improve element detection to include interactive elements without visible text,
and add convenient tool to find and tap elements by query.

Android enhancements:
- Add clickable, focusable, enabled, selected, package fields to UiAutomatorXmlNode
- Include clickable/focusable elements (buttons, icons, views) in element detection
- Change default element type from 'text' to 'element' for more accurate categorization

New mobile_tap_element tool:
- Search for elements by text, label, name, value, or identifier
- Case-insensitive matching
- Provides helpful errors when no match or multiple matches found
- Automatically taps center of matching element
- Works on both iOS and Android

Co-Authored-By: Ben Myers <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant