---
title: XCUIElementSnapshot
framework: xcuiautomation
role: symbol
role_heading: Protocol
path: xcuiautomation/xcuielementsnapshot
---

# XCUIElementSnapshot

A set of attributes to express a snapshot of an element’s attributes and descendant user interface hierarchy.

## Declaration

```swift
@MainActor protocol XCUIElementSnapshot : XCUIElementAttributes
```

## Topics

### Inspecting attributes

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

## Relationships

### Inherits From

- [XCUIElementAttributes](xcuiautomation/xcuielementattributes.md)

## See Also

### UI elements

- [XCUIElement](xcuiautomation/xcuielement.md)
- [XCUIElementAttributes](xcuiautomation/xcuielementattributes.md)
- [XCUIElementSnapshotProviding](xcuiautomation/xcuielementsnapshotproviding.md)
- [XCUICoordinate](xcuiautomation/xcuicoordinate.md)
