iphone_wait_for
Waits until an on-screen element containing the specified text appears, returning immediately or timing out instead of repeated screenshot polling. Ignores text typed into input fields.
Instructions
等包含某段文字的界面元素出现(例如页面加载完、弹窗出现),出现就立即返回;超时报错。代替反复截图轮询。输入框里的字不算。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| timeout | No | 最多等几秒(不超过 30) |