Skip to main content

Get Table Column Headers

Returns the column header names of a grid / table as a JSON array of strings (Windows only). Uses the UIA TablePattern; the element must expose column-header metadata.

Category: Desktop Application Automation · Group: Desktop · Activity name: GetTableColumnHeaders

The GetTableColumnHeaders activity in the designer

Example

outputVariable = GetTableColumnHeaders("<xPath>", checkOrphanedElements=False)

Inputs

NameTypeRequiredDefaultDescription
XPathstringYesXPath expression that identifies the grid / table element.
Check orphaned elementsbooleanFalseWhen 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

NameTypeDescription
outputVariablearraySpecifies the name of the variable that will store the column headers as a JSON array.