click_element
Wait for an element, scroll it into view, then click. Triggers navigation, form submission, or modals. For iOS, use tap_element instead.
Instructions
Waits for an element, scrolls it into view, and fires element.click(). May trigger navigation, form submission, or modals. Browser sessions only — on iOS element.click() is silently ignored; use tap_element instead. Default timeout: 3000ms.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selector | Yes | Value for the selector, in the form of css selector or xpath ("button.my-class" or "//button[@class='my-class']" or "button=Exact text with spaces" or "a*=Link containing text") | |
| scrollToView | No | Whether to scroll the element into view before clicking | |
| timeout | No | Maximum time to wait for element in milliseconds |