---
version: "2026.1.0"
language: "en"
---
# Get UI Attribute

The **Get UI Attribute** block retrieves a specific attribute from a desktop UI element, typically found using the **Find UI Element** block, in an already open application window.

It is commonly used in desktop UI automation to extract values such as visibility, selection state, text, or accessibility labels from UI controls.

This block does not trigger execution or flow branching. Instead, it acts as a passive data extractor, supplying attribute values to downstream blocks.

When fully expanded, the Get UI Attribute block displays the following properties:  
![image-20251112-085311.png](https://docs.leapwork.com/__attachments/a_7ff7d900c5d7dda832f7fcef1c8780f7d57334602237bbe54306f7b2af866ba3/image-20251112-085311.png?cb=6f696c1212e24e0f3d434167511d8329)

**Note:** The screenshot on this page uses the **Elegance Design** , introduced in **2025.3**. If you are using an earlier version, your layout may look different.

## Quick-start

1. Drag **Get UI Attribute** onto the canvas.

2. Connect**Source element** input and output.

3. Select one or more **Desktop attributes**.

4. Run the flow when it's ready.

### Building block parameters

Parameters  
* **The Block Header:** The title of the block ("Set UI Element Value") can be changed by double-clicking on it and typing in a new title.

* **Source element:** Provides the UI element from which the attribute will be retrieved. Usually connected to the *Element found* output of a **Find UI Element** block. Can be reused in other downstream blocks.

* **Desktop attributes:** Specifies the name of the UI attribute to retrieve from the source element. The dropdown includes system-defined attributes such as `Name`, `Value`, `IsSelected`, `HelpText`, and others.

  Example: Selecting `IsSelected` on a radio button will return `True` if it is selected and `False` if it is not.

  ![image-20251112-101015.png](https://docs.leapwork.com/__attachments/a_af77d4ab99d6aa27aaf83a03970bb55b23e9a4ea511d416024355bf7b9d16efb/image-20251112-101015.png?cb=1694fdc0fbb4eeb717c83a1cd9ff01e5)

* **Attribute value:** Outputs the value of the specified UI attribute. The value type depends on the attribute and may be a string, boolean, or numeric value. This output can be connected to other blocks as input.

* **Exists:**Returns whether the specified attribute exists on the source element. Useful for validating conditions before proceeding in the flow.

  * `True` if the attribute is present, even if it does not contain a value.

  * `False` if the attribute is not available on the element.

### Resources

|                                                **Topic**                                                |                                                  **Description**                                                  |
|---------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------|
| [Flows FAQ](https://docs.leapwork.com/faq/latest/leapwork-flow-faq/flows-faq.md)                                                 | Common questions about creating, running, and managing flows in Leapwork.                                         |
| [Flows Troubleshooting](https://docs.leapwork.com/troubleshooting/latest/leapwork-flow-troubleshooting/flows-troubleshooting.md) | Guidelines and solutions for identifying and fixing issues that occur when building or running flows in Leapwork. |