Click
clickPerform mouse actions on browser elements by ref, CSS selector, visible text, or coordinates. Uses trusted CDP input with DOM fallback and waits for navigation.
Instructions
Click an element by ref (preferred), CSS selector, visible text, or viewport coordinates. Uses trusted CDP input by default and falls back to DOM events. Waits for a navigation if one starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | Viewport X coordinate, if not using ref/selector/text. | |
| y | No | ||
| ref | No | ||
| text | No | Visible text or accessible name to match. | |
| human | No | Move the mouse along a human-like path. Default false (faster); set true only when a site needs human-like movement. | |
| tabId | No | ||
| button | No | left | |
| frameId | No | ||
| timeout | No | ||
| trusted | No | true = real CDP input; false = DOM events. | |
| selector | No | ||
| exactText | No | ||
| modifiers | No | ||
| waitUntil | No | domcontentloaded | |
| clickCount | No | ||
| delayAfter | No | ||
| switchToNewTab | No | ||
| detectNavigationMs | No | How long to watch for a navigation after the click. Default 700. |