Skip to main content
Glama

ios_wait_for_element

Wait for a UI element to appear on iOS simulator before interacting with it. Polls until the element is found or timeout occurs, ensuring screen readiness for automated testing.

Instructions

Wait for a UI element to appear on iOS simulator. Polls until found or timeout. Requires IDB (brew install idb-companion). Use this FIRST after navigation to ensure screen is ready, then use find_element + tap.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
labelNoExact accessibility label match
labelContainsNoPartial label match (case-insensitive)
valueNoExact accessibility value match
valueContainsNoPartial value match (case-insensitive)
typeNoElement type to match (e.g., 'Button', 'TextField')
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)
udidNoOptional simulator UDID. Uses booted simulator 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