wait_for_url
Wait until the page URL contains a given substring, ideal for SPA navigation where routes change without page reloads. Returns on match or timeout.
Instructions
Wait for the page URL to contain a given substring.
Use this after clicking a SPA navigation link where the URL changes client-side without a full page reload. Returns once the URL matches or the timeout expires.
Args: url_contains: Substring the URL must contain (e.g. '/dashboard', '?tab=posts'). timeout_ms: Maximum time to wait in milliseconds (default 10 000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_ms | No | ||
| url_contains | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |