click_by_text
Click buttons, links, tabs, radios, or checkboxes by their visible text. Scrolls element into view before clicking for reliability.
Instructions
Click a button, link, tab, radio, or checkbox by its visible text. Much more reliable than coordinate clicking. Scrolls element into view before clicking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Visible text to search for (case-insensitive partial match) | |
| element_type | No | Type of element to click (default: 'any') | |
| index | No | Which match to click if multiple found (0-based, default: 0) | |
| browser | No | 'safari' or 'chrome' (defaults to Safari) |