DocsWait Utilitiesbrowser_wait

browser_wait

browser_wait

Pause execution for a fixed number of milliseconds. Use sparingly - prefer browser_wait_for_selector or browser_wait_for_network_idle for more reliable synchronization.

When to use browser_wait

Use browser_wait 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

123456789101112
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(
context_id=context_id,
timeout="value"
)

Parameters

Required

context_idstringrequired

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

timeoutintegerrequired

Time to wait in milliseconds before continuing. Use for fixed delays when other wait methods aren't suitable. Examples: 1000 for 1 second, 3000 for 3 seconds

Response

Returns a JSON object with the operation result.

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

Frequently Asked Questions

What does browser_wait do?

Pause execution for a fixed number of milliseconds. Use sparingly - prefer browser_wait_for_selector or browser_wait_for_network_idle for more reliable synchronization. It belongs to Owl Browser's Wait Utilities category and is available through the REST API, the Python SDK (browser.wait()), the Node.js SDK, and the MCP server.

What parameters does browser_wait accept?

browser_wait accepts 2 required parameters (context_id, timeout) and 0 optional parameters. All parameters are sent as JSON in a POST request to /api/execute/browser_wait.

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

No. browser_wait 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.