Skip to main content

Get Table Cell By Headers

Reads the value of a grid / table cell at the intersection of the given row-header and column-header text (Windows only). Uses the UIA TablePattern to resolve indices, then GridPattern to fetch the cell. Resilient to row/column reordering compared to index-based lookup.

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

The GetTableCellByHeaders activity in the designer

Example

outputVariable = GetTableCellByHeaders("<xPath>", "<tableRowHeader>", tableColumnHeader="<tableColumnHeader>", checkOrphanedElements=False)

Inputs

NameTypeRequiredDefaultDescription
XPathstringYesXPath expression that identifies the grid / table element.
Row headerstringYesVisible text of the row header to look up.
Column headerstringYesVisible text of the column header to look up.
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
outputVariablestringSpecifies the name of the variable that will store the cell value.