browser_wait
Waits read-only for a specified condition in an open browser tab, such as element visibility, text, value, URL, or network idle, and returns the last state on timeout.
Instructions
Read-only wait for condition. State uses native properties/ARIA; missing state is unavailable, not false. Role absence need not mean DOM removal. Prefer a result/status container for text; compares full text, reports a bounded preview with length/truncation. Timeout reports last state; field values are omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Selector only: zero-based DOM index, AX tree order for role. | |
| name | No | role only: exact AX name; empty allowed. | |
| frame | No | Child frame: at least one of url/title/path. url/title exact; path=unique nested CSS iframe steps (e.g. ["#frame"]); exclusive with frame_id. | |
| idle_ms | No | network_idle quiet interval. | |
| expected | No | Required for url (substring), value (exact), checked/selected/expanded (boolean; checked also "mixed"). text: expected substring XOR previous. Omit otherwise. | |
| frame_id | No | ||
| previous | No | text only: complete prior innerText, not a truncated preview; exclusive with expected. Change does not establish new-run completion. | |
| selector | No | Query by selector_type; role example: selector="link", name="Claim". | |
| condition | Yes | Element conditions require selector; url/network_idle forbid locator fields. | |
| tab_handle | Yes | ||
| timeout_ms | No | ||
| dialog_policy | No | accept/dismiss auto-handle dialogs and return their messages. | ask |
| selector_type | No | Default css. label: exact associated HTML label, whitespace normalized. placeholder: exact attribute. |