Skip to content

Click

Type: page-click  ·  Package: Browser v1.0.0

You click on a page element (a button, a link, a box). It is the most common interaction activity: any action that you would do with the mouse in the browser.

Locate the element indicated by the selector, wait for it to be actionable (visible and enabled) and click. If it does not appear within timeout, the activity fails. You can choose the mouse button and the number of clicks (for double click).

ParameterEditorDescription
selectorselectorThe item to click. Capture it with the visual selector or write a CSS.
ParameterEditorDescription
pagesessionThe page session. Omit it inside a body; outside, pass = page.
buttonlistMouse button: left (def.) · right · middle.
clickCountnumberNumber of clicks: 1 (click, def.) · 2 (double click).
timeoutnumberMaximum ms to wait for the element to be actionable. By default 30000.
Page Click selector = (#botonGuardar)
Page Click selector = (.fila-resultado) clickCount = 2 // doble clic
Page Click selector = (#menu) button = right // clic derecho
SymptomCausaSolution
Timeout waiting for elementThe selector does not match or the element did not appearRe-capture the selector; add a previous Wait For
You click on the wrong itemSelector matches multiple elementsUse a more specific selector (id, unique text)
  • Hover — hover without clicking (drop-down menus).
  • Wait For — ensure that the element is ready.
  • Element Exists — check if the element exists before acting.