Navigation and waiting
Navigate
Section titled “Navigate”| Command | Description |
|---|---|
goto <url> |
Navigate the current tab |
back / forward / reload |
History navigation and reload |
follow <ref> |
Click a link and wait for navigation |
Do not sleep blindly. Wait on a condition.
| Command | Waits for |
|---|---|
wait load |
The load event |
wait domcontentloaded |
DOMContentLoaded |
wait networkidle |
No network activity |
wait selector <ref|selector> [--state visible|hidden|attached|detached] |
An element state |
wait text "<text>" |
Text to appear |
wait url <pattern> |
The URL to match a glob, e.g. "**/dashboard" |
wait ms <n> |
A fixed delay. Last resort |
paginate
Section titled “paginate”agent-browser-ff paginate --next <ref|selector> [--max-pages <n>] [--until-missing]Follows a “next” target until it is missing, disabled, or --max-pages is reached. For structured results use scrape.
agent-browser-ff tabs listagent-browser-ff tabs new [url]agent-browser-ff tabs switch <id>agent-browser-ff tabs close <id>Commands act on the current tab. After a popup, run tabs list then tabs switch <id>.