browser_wait
Waits until a JavaScript expression returns a truthy value, with configurable timeout and interval, and optional tab switch before waiting.
Instructions
Wait until JavaScript condition returns a truthy value.
Args: condition_js: JavaScript expression or script. The return value is tested for truthiness. timeout: Maximum seconds to wait. interval: Seconds between checks. switch_tab_id: Optional tab ID to make active before waiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| interval | No | ||
| condition_js | Yes | ||
| switch_tab_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |