wait_for_url
Waits for navigation to settle by matching a URL pattern and document readiness, then returns the final URL, title, and state. Use after clicks or navigations to avoid premature checks.
Instructions
Wait for navigation to settle: blocks until the tab's URL matches url_pattern (regex, or plain substring) and — unless wait_ready=false — document.readyState is 'complete', then returns the final url, title and readyState. Use this after a click or open_url that navigates; wait_for(url_pattern=...) only checks the URL and can return while the new document is still blank. Polls in-page, so a long wait is still cheap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout | No | ||
| session_id | No | ||
| wait_ready | No | ||
| url_pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||