# Get active element

Node type `browser_getActiveElement`

## What it does

Get the element that currently has page focus.

## Desktop client configuration

![Get active element configuration in the desktop client](/assets/get-active-element.2a170da5a4c1c7e79d1aba39b24f11bf90ddccae137df1a086d71c9dd9adfcba.0538f3a9.webp)

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

## Inputs

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

This node has no dedicated input fields.

## Mode requirements and limits

- **Inputs:** There are no action fields. You can omit inputs or pass `{}`.
- Validation code `RPA_NODE_INPUT_INVALID`


## Outputs

| Output field | Type or values |
|  --- | --- |
| `element` | `ElementRef` / `null` |


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": "focused_field",
  "type": "browser_getActiveElement",
  "data": {
    "title": "Get the focused field",
    "browserAction": "getActiveElement",
    "browserUi": {
      "inputs": {},
      "exception": {
        "timeout": 30000,
        "policy": "interrupt"
      }
    }
  }
}
```

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