ui_click
Click an element by CSS selector, visible text, or test id. Waits until it is actionable, sends real mouse events, and reports network requests, console errors, and DOM changes.
Instructions
Click an element, identified by CSS selector, visible text or test id. Waits until it is actually clickable — rendered, enabled, stopped moving, and not covered by anything — then dispatches real (trusted) mouse events, and reports what the click caused: requests fired, console errors, whether the DOM changed at all. If it never became clickable it says which of those conditions failed and what was in the way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | Which match to use when several qualify, 0-based. | |
| role | No | Narrow the matches to this ARIA role. | |
| text | No | Visible text on the control. Matches the innermost element that carries it, and follows a <label> to its input. | |
| exact | No | Require the whole text to match rather than a substring. | |
| force | No | Skip the hit-test and click the centre regardless of what is on top. A last resort — it is how you click the wrong thing. | |
| frame | No | 'main' (default) or a substring of a frame's origin/name. Single-page apps often render the screen you want in a child frame. | main |
| button | No | Which mouse button. | left |
| testid | No | Value of a test attribute (data-testid and friends — see the testAttributes setting). | |
| selector | No | CSS selector. Descends into open shadow roots. | |
| modifiers | No | Held while clicking: shift, ctrl, alt, meta. | |
| timeout_ms | No | How long to wait for the element to become actionable before giving up. | |
| click_count | No | 2 for a double-click. |