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.
How it works
Section titled “How it works”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).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
selector | selector | The item to click. Capture it with the visual selector or write a CSS. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
page | session | The page session. Omit it inside a body; outside, pass = page. |
button | list | Mouse button: left (def.) · right · middle. |
clickCount | number | Number of clicks: 1 (click, def.) · 2 (double click). |
timeout | number | Maximum ms to wait for the element to be actionable. By default 30000. |
Example
Section titled “Example”Page Click selector = (#botonGuardar)Page Click selector = (.fila-resultado) clickCount = 2 // doble clicPage Click selector = (#menu) button = right // clic derechoCommon errors
Section titled “Common errors”| Symptom | Causa | Solution |
|---|---|---|
Timeout waiting for element | The selector does not match or the element did not appear | Re-capture the selector; add a previous Wait For |
| You click on the wrong item | Selector matches multiple elements | Use a more specific selector (id, unique text) |
Related activities
Section titled “Related activities”- Hover — hover without clicking (drop-down menus).
- Wait For — ensure that the element is ready.
- Element Exists — check if the element exists before acting.