Skip to main content

Click

Clicks on an HTML element.

Category: Web Element Interaction · Group: Web · Activity name: ClickElement

The ClickElement activity in the designer

Example

ClickElement("<selector>", iframeSelector="<iframeSelector>", iframeSelectors=[], useBrowserDebugger=True)

Inputs

NameTypeRequiredDefaultDescription
SelectorstringYesCSS selector or XPath to identify the HTML element.
iFrame SelectorstringCSS selector or XPath to locate the iframe containing the target element. Leave empty if the element is not inside an iframe.
iFrame SelectorsarrayAn ordered array of CSS selectors or XPaths to locate nested iframes containing the target element. Provide selectors in order from outermost to innermost iframe (e.g., ['#parent-frame', '.child-frame'] for an element inside a child iframe that's within a parent iframe). Leave empty if the element is not inside any iframes.
Use a real (trusted) clickbooleanPerform a real, browser-level mouse click (Chrome only) instead of a synthetic element click. Useful for sites that require trusted events, or where another element overlays the target. Falls back to a standard click on other browsers.