Click element
click_elementClicks the first element matching a selector and waits for any navigation it triggers, enabling reliable browser test interactions.
Instructions
Click the first element matching a selector. Waits for any navigation the click triggers. Note "text=" is a case-insensitive substring match against any element (headings included); prefer aria-ref from get_page_snapshot or scoped selectors like button:has-text("Login").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | CSS selector of the iframe containing the element (e.g. "iframe[name^=__privateStripeFrame]"), or a list for nested iframes, outermost first. Not needed with aria-ref selectors. | |
| timeout | No | Timeout in milliseconds | |
| selector | Yes | Selector: "aria-ref=e5" from get_page_snapshot (preferred; also reaches into iframes), CSS ("#email", "button.submit"), text ("text=Sign in"), role ("role=button[name=/save/i]") or XPath ("xpath=//a") |