session_click
Clicks an element by CSS selector or @eN ref using a real mouse press/release so handlers that ignore synthetic events still fire. Returns clicked target or 'Element not found'.
Instructions
Click an element, by CSS selector or by an @eN ref from session_snapshot. Scrolls the element into view and dispatches a real mouse press and release at its centre, so handlers that ignore synthetic events still fire. Returns {clicked} naming what was targeted. Fails with 'Element not found' rather than clicking something else when nothing matches.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | A ref from session_snapshot, such as @e12, used instead of selector | |
| tabId | No | Tab to act on; uses the active tab when omitted | |
| selector | Yes | CSS selector for the element to click |