---
title: dictionaryRepresentation
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielementsnapshot/dictionaryrepresentation
---

# dictionaryRepresentation

A hierarchical dictionary representation of an element’s attributes, and all of an element’s user interface descendants.

## Declaration

```swift
var dictionaryRepresentation: [XCUIElement.AttributeName : Any] { get }
```

## See Also

### Inspecting attributes

- [children](xcuiautomation/xcuielementsnapshot/children.md)
