ui.wait_for
Wait for a UI element to appear or disappear to handle loading, popups, or page transitions. Returns ok=false if the timeout expires.
Instructions
轮询等待选择器出现/消失(等弹窗、加载完成、页面跳转),超时返回 ok=false
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pkg | No | 包名(id 短名补全用) | |
| gone | No | true=等待其消失 | |
| timeout | No | 最长等待秒数 | |
| selector | Yes | GKD 选择器 |