wait_for
Wait for UI elements to appear, disappear, or match text in WeChat mini-programs. Specify a target, timeout, or visible state to synchronize test actions with page states.
Instructions
等待条件满足,支持等待元素出现、消失、文本匹配等
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | 等待元素包含指定文本 | |
| delay | No | 等待指定毫秒数(时间等待模式) | |
| target | No | 等待元素目标(定位等待模式) | |
| timeout | No | 超时时间(毫秒),默认5000ms | |
| visible | No | 等待元素可见状态,true为可见,false为隐藏 | |
| disappear | No | 等待元素消失,默认false |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | Yes | ||
| data | Yes | ||
| meta | Yes | ||
| error | Yes | ||
| warnings | Yes | ||
| nextActions | Yes | ||
| observation | Yes | ||
| partialData | Yes | ||
| schemaVersion | Yes |