click
Click elements on a web page using CSS selector or snapshot fingerprint. Auto-scrolls to ensure the element is visible before clicking, preventing off-screen errors.
Instructions
Click an element by CSS selector OR by a ref (fingerprint) from snapshot. Auto-scrolls the element into view first (fixes off-screen 'not actionable'). Targets the active tab unless a browserId is given.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | No | CSS selector, e.g. "button[type=submit]" or "a.login". | |
| ref | No | A fingerprint ref from `snapshot` (the value after "fp:"), as an alternative to selector. | |
| browserId | No | Target tab (from list_tabs). Defaults to active. | |
| button | No | Mouse button. Default: left. |