DocsWait Utilitiesbrowser_wait_for_url

browser_wait_for_url

browser_wait_for_url

Wait for the page URL to match a specific pattern. Useful after clicking links or submitting forms to ensure navigation completed. Supports substring matching or glob patterns with wildcards.

When to use browser_wait_for_url

Use browser_wait_for_url when you need to synchronize your script with the real state of a loading page. It is part of Owl Browser's Wait Utilities toolset and runs inside a self-hosted, source-level stealth engine, so every call inherits the same undetectable browser fingerprint as the rest of your automation — no separate anti-detect setup required.

Usage Example

1234567891011
import asyncio
from owl_browser import OwlBrowser, RemoteConfig
# Async usage
async with OwlBrowser(config) as browser:
context = await browser.create_context()
context_id = context["context_id"]
await browser.wait_for_url(
context_id=context_id
)

Parameters

Required

context_idstringrequired

The unique identifier of the browser context (e.g., 'ctx_000001')

Optional

url_patternstring

URL pattern to match. By default uses substring matching. With is_regex=true, supports glob patterns with * (any chars) and ? (single char). Examples: '/dashboard', 'example.com/success', '*/order/*'. One of 'url_pattern' or 'url' is required.

urlstring

Alias for 'url_pattern'. Accepted interchangeably; if both are given, 'url_pattern' wins.

is_regexboolean

Enable glob-style pattern matching with * and ? wildcards. Default: false (simple substring match)

timeoutinteger

Maximum time to wait for URL to match. Default: 30000 (30 seconds)

Response

Returns a JSON object with the operation result.

{
  "success": true,
  "result": <value>
}

Frequently Asked Questions

What does browser_wait_for_url do?

Wait for the page URL to match a specific pattern. Useful after clicking links or submitting forms to ensure navigation completed. Supports substring matching or glob patterns with wildcards. It belongs to Owl Browser's Wait Utilities category and is available through the REST API, the Python SDK (browser.wait_for_url()), the Node.js SDK, and the MCP server.

What parameters does browser_wait_for_url accept?

browser_wait_for_url accepts 1 required parameter (context_id) and 4 optional parameters. All parameters are sent as JSON in a POST request to /api/execute/browser_wait_for_url.

Is browser_wait_for_url detectable by anti-bot systems like Cloudflare or DataDome?

No. browser_wait_for_url executes inside Owl Browser's Chromium engine, which applies fingerprint spoofing at the C++ source level rather than through JavaScript patches. Every tool call shares the same consistent, human-like fingerprint, so anti-bot systems such as Cloudflare, DataDome, and Akamai see an ordinary browser.

Related Tools

Browse the full Owl Browser API reference or get started with the Python SDK and Node.js SDK.