Get Element Value
Reads the value of a text input, combobox or range element via the UIA ValuePattern (Windows only). Complements 'Get Text' — works when the element exposes a value but not visible text.
Category: Desktop Application Automation · Group: Desktop · Activity name: GetElementValue

Example
outputVariable = GetElementValue("<xPath>", checkOrphanedElements=False)
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| XPath | string | Yes | XPath expression that identifies the target element. | |
| Check orphaned elements | boolean | False | When the element is not found by its XPath, scan the parent window's area for elements detached from the UI Automation tree. Slower; enable only for windows known to orphan their elements. |
Outputs
| Name | Type | Description |
|---|---|---|
| outputVariable | string | Specifies the name of the variable that will store the element value. |