Skip to main content
Glama

android_wait_for_element

Wait for a UI element to appear on Android screen by polling the accessibility tree. Use after navigation to ensure the screen is ready before interacting with elements.

Instructions

Wait for a UI element to appear on Android screen. Polls the accessibility tree until the element is found or timeout is reached. Use this FIRST after navigation to ensure screen is ready, then use find_element + tap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textNoExact text match for the element
textContainsNoPartial text match (case-insensitive)
contentDescNoExact content-description match
contentDescContainsNoPartial content-description match (case-insensitive)
resourceIdNoResource ID match (e.g., 'com.app:id/button' or just 'button')
indexNoIf multiple elements match, select the nth one (0-indexed, default: 0)
timeoutMsNoMaximum time to wait in milliseconds (default: 10000)
pollIntervalMsNoTime between polls in milliseconds (default: 500)
deviceIdNoOptional device ID. Uses first available device if not specified.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/igorzheludkov/metro-logs-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server