Find elements
findLocate page elements by visible text, CSS selector, XPath, or accessible role/name—even inside iframes and shadow DOM—and return references with role, name, and position.
Instructions
Finds elements by visible text, CSS selector, XPath, or accessible role/name (searches iframes and shadow DOM) and returns refs with role, name and position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Accessible name to match together with role. | |
| role | No | Accessible role, e.g. "button", "link", "textbox". | |
| text | No | Text to search for (case-insensitive substring). | |
| limit | No | Maximum results (default 20). | |
| tabId | No | Tab to act on. Defaults to the session target tab (see tab_select). | |
| xpath | No | XPath expression. | |
| selector | No | CSS selector. |