click
Activates a webpage element by CSS selector, with optional waits for page navigation, async UI, or a specific element after activation.
Instructions
Click an element by CSS selector.
Args: selector: CSS selector for the element to click. wait_for_navigation: Wait for a page load after clicking (default True). Set to False for clicks that trigger in-page UI changes like modals, dropdowns, or expanding sections. wait_for: CSS selector to wait for AFTER clicking — use this when the click opens a modal or triggers async UI rendering. The tool waits up to 5 s for the element to appear before returning. wait_ms: Extra milliseconds to wait after the click before reading the page. Useful for SPAs where JS hydration takes a moment (e.g. 500–2000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_ms | No | ||
| selector | Yes | ||
| wait_for | No | ||
| wait_for_navigation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |