# Click element

Node type `browser_click`

## What it does

Click a selected element on the page.

## Desktop client configuration

![Click element configuration in the desktop client](/assets/click.6071d8c516afd7a835eb24a83e0d294fd313fdc998df31ddfc523dcf7ce5413a.0538f3a9.webp)

Captured in the English interface of MoreLogin Desktop V2.73.101.

## Inputs

These fields belong in `data.browserUi.inputs`.

| Field | Type or values | Schema required | Execution default | Description and bounds |
|  --- | --- | --- | --- | --- |
| `selectorType` | `"selector"` / `"element"` / `"frame"` (supports variable references) | No | `"selector"` | Element source. Editor initial value `"selector"` |
| `frame` | `string` | No | — | iframe variable |
| `element` | `string` | No | — | Element variable |
| `selectorRadio` | `"CSS"` / `"XPath"` (supports variable references) | No | `"CSS"` | Selector type. Editor initial value `"CSS"` |
| `selector` | `string` | No | — | Selector |
| `serialType` | `"fixed"` / `"randomInterval"` (supports variable references) | No | `"fixed"` | When multiple element objects match. Editor initial value `"fixed"` |
| `serial` | `WorkflowNumber` | No | `1` | Element index; integer; minimum after resolution: 1. Editor initial value `1` |
| `serialMin` | `WorkflowNumber` | No | — | Minimum index; integer; minimum after resolution: 1 |
| `serialMax` | `WorkflowNumber` | No | — | Maximum index; integer; minimum after resolution: 1 |
| `button` | `"left"` / `"right"` / `"middle"` (supports variable references) | No | `"left"` | Mouse button. Editor initial value `"left"` |
| `type` | `"click"` / `"dblclick"` (supports variable references) | No | `"click"` | Click method. Editor initial value `"click"` |
| `useMouse` | `boolean` (supports variable references) | No | `false` | Use mouse offset coordinates. Editor initial value `false` |
| `mouseX` | `WorkflowNumber` | No | — | Horizontal offset range (px); minimum after resolution: 0 |
| `mouseY` | `WorkflowNumber` | No | — | Vertical offset range (px); minimum after resolution: 0 |
| `relseaseDelay` | `WorkflowNumber` | No | — | Press-to-release interval (ms); minimum after resolution: 0 |
| `postWaitMs` | `WorkflowNumber` | No | `300` | Wait after completion (ms); minimum after resolution: 0. Editor initial value `300` |


`relseaseDelay` is spelled this way in the node contract. Send the field name exactly as shown.

## Mode requirements and limits

- **Locator rules:** selectorType=selector requires selector; frame requires frame+selector; element requires an ElementRef reference from a previous node. serial starts at 1. randomInterval uses serialMin/serialMax, and the minimum cannot be greater than the maximum. The node first waits for the selector to match elements, then picks the index once: the upper bound of the range is capped at the actual match count. If a fixed index or the lower bound of the range is greater than the match count, ELEMENT_NOT_FOUND (reason=range, details.field is serial or serialMin) is returned immediately and the page is not touched.
- Validation code `RPA_NODE_INPUT_INVALID`


## Input references

| Field | Allowed forms |
|  --- | --- |
| `selectorType` | `literal`, `template` |
| `frame` | `literal`, `template` |
| `element` | `literal`, `template` |
| `selectorRadio` | `literal`, `template` |
| `selector` | `literal`, `template` |
| `serialType` | `literal`, `template` |
| `serial` | `literal`, `numericExpression` |
| `serialMin` | `literal`, `numericExpression` |
| `serialMax` | `literal`, `numericExpression` |
| `button` | `literal`, `template` |
| `type` | `literal`, `template` |
| `useMouse` | `literal`, `template` |
| `mouseX` | `literal`, `numericExpression` |
| `mouseY` | `literal`, `numericExpression` |
| `relseaseDelay` | `literal`, `numericExpression` |
| `postWaitMs` | `literal`, `numericExpression` |


## Outputs

| Output field | Type or values |
|  --- | --- |
| `tabId` | `string` |
| `element` | `ElementRef` |
| `clicked` | `true` |
| `url` | `string` |
| `title` | `string` |
| `openedTabs` | array<`TabInfo`> |


Reference published fields as `${nodeId.data.field}`.

## JSON example

A complete node object for a workflow's `nodes` array or another node's `blocks`.

```json
{
  "id": "click_submit",
  "type": "browser_click",
  "data": {
    "title": "Click the submit button",
    "browserAction": "click",
    "browserUi": {
      "inputs": {
        "selectorType": "selector",
        "selectorRadio": "CSS",
        "selector": "button[type=submit]",
        "serialType": "fixed",
        "serial": 1,
        "button": "left",
        "type": "click",
        "postWaitMs": 300
      },
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

[Back to the node catalog](/browser-rpa/nodes)