click
Triggers an element by real mouse event after scrolling it into view. Matches via CSS selector or visible text, handling widgets that require genuine mousedown behavior.
Instructions
Click an element, scrolling it into view first.
On the CDP backend this is a real mouse event at the element's centre, so widgets that only react to genuine mousedown behave correctly.
Args: selector: CSS selector. text: Visible text to match. Combined with selector it narrows within those matches; alone it searches clickable elements. Exact matches win over partial ones, and the innermost match wins. tab_id: Exact tab id. url_pattern: Regex matched against tab URLs. nth: Which match to click, 0-based.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nth | No | ||
| text | No | ||
| tab_id | No | ||
| selector | No | ||
| url_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |