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.
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_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
timeoutstringrequiredTime 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>
}