findElementsByText
Search page elements by visible text and retrieve stable selectors for automation. Optionally click, type, hover, or style matches directly, removing the need for custom scripts.
Instructions
Find elements by visible text content and get their selectors. Use this INSTEAD of executeScript when you need to find elements. Returns working selectors that can be used with click/type tools. Can optionally perform actions directly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Search text | |
| exact | No | Exact match (default: false) | |
| action | No | Optional action on first match | |
| caseSensitive | No | Case sensitive (default: false) |