browser_find_element
Browser Find Element
Find an element on the page using natural language description. Returns the CSS selector, confidence score, and element details. Useful for locating elements before interaction.
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.find_element(
context_id=context_id,
description="value"
)
Parameters
Required
context_idstringrequiredThe unique identifier of the browser context (e.g., 'ctx_000001')
descriptionstringrequiredNatural language description of elements to find (e.g., 'all buttons', 'form inputs')
Optional
max_resultsstringMaximum number of results to return (default: 10)
Response
Returns a JSON object with the operation result.
{
"success": true,
"result": <value>
}