| name | agent-browser-wait |
| version | 1.0.0 |
| description | Wait for elements, timeouts, text appearance, URL patterns, page load
states, and custom JavaScript conditions.
|
| allowed-tools | ["Bash"] |
Agent Browser: Wait
Pause execution until conditions are met.
Wait for Element
agent-browser wait <selector>
Wait for Time
agent-browser wait <ms>
Wait for Text
agent-browser wait --text "text"
Wait for URL
agent-browser wait --url "pattern"
Wait for Load State
agent-browser wait --load load
agent-browser wait --load domcontentloaded
agent-browser wait --load networkidle
Wait for JavaScript Condition
agent-browser wait --fn "document.querySelector('.done') !== null"
agent-browser wait --fn "window.appReady === true"
Examples
agent-browser wait "#login-form"
agent-browser wait 2000
agent-browser wait --text "Successfully saved"
agent-browser wait --url "/dashboard"
agent-browser wait --load networkidle
agent-browser wait --fn "window.__APP_STATE__ === 'ready'"
Guidelines
- Use element waits before interacting with dynamically loaded content
- Prefer
--load networkidle for SPAs that load data after initial render
- Use
--fn for complex application-specific conditions
- Combine with other commands: wait first, then interact