browser_wait_for
Pause browser automation until specific page conditions are met—visible text, selector presence or absence, URL fragment, JavaScript expression, or a fixed delay.
Instructions
Wait until every given condition holds (default up to 5 s; timeout_ms for longer): text, a selector present or gone, a URL part, a JS expression, a pause. Navigating actions already wait.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| js | No | This expression becomes truthy | |
| ms | No | Just wait this long | |
| url | No | The URL contains this | |
| gone | No | No visible element matches this selector | |
| text | No | Visible text appears | |
| selector | No | A visible element matches | |
| snapshot | No | Also return the page snapshot after the action | |
| timeout_ms | No | Wait up to this long (default 5000) |