Use click
to activate links, buttons, and interactive UI elements. Prefer click
for most cases; switch to Hardware Click only when a site requires a real, trusted gesture (e.g., OAuth popups).
selector
(CSS or Playwright-like: text=...
, role=...
, xpath=...
)xpath
, text
, role
(fallbacks if selector
omitted)exact
(boolean), button
(left|middle|right), click_count
(number)modifiers
(CSV: Alt,Control,Meta,Shift), scroll_into_view
(boolean, default true)trusted
(boolean) — simulate hardware click via CDPplaceholder
, aria_label
, input_type
, name_attr
, attr_contains
, nth
(0-based)Click by visible text (exact):
{
"command": "click",
"selector": "text=Start a post",
"exact": true
}
3rd matching button by ARIA label:
{
"command": "click",
"aria_label": "Add to cart",
"nth": 2
}
Trusted click for OAuth button:
{
"command": "click",
"selector": "button.gsi-material-button",
"trusted": true
}
With key modifiers:
{
"command": "click",
"selector": "a.product-tile",
"modifiers": "Meta,Shift"
}
selector
; runner normalizes text=
, role=
, xpath=
.scroll_into_view
on to reduce “not clickable” errors.nth
to disambiguate repeated elements.trusted
for sites that require real user gestures.wait_for_selector
(state: "visible"
) before click.exact: true
or attribute helpers.trusted: true
, then wait_for_navigation
or wait_for_selector
in the new tab.