---
title: XCUIElementSnapshotProviding
framework: xcuiautomation
role: symbol
role_heading: Protocol
path: xcuiautomation/xcuielementsnapshotproviding
---

# XCUIElementSnapshotProviding

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

## Declaration

```swift
@MainActor protocol XCUIElementSnapshotProviding : NSObjectProtocol
```

## Topics

### Providing snapshots

- [snapshot()](xcuiautomation/xcuielementsnapshotproviding/snapshot().md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Conforming Types

- [XCUIApplication](xcuiautomation/xcuiapplication.md)
- [XCUIElement](xcuiautomation/xcuielement.md)

## See Also

### UI elements

- [XCUIElement](xcuiautomation/xcuielement.md)
- [XCUIElementAttributes](xcuiautomation/xcuielementattributes.md)
- [XCUIElementSnapshot](xcuiautomation/xcuielementsnapshot.md)
- [XCUICoordinate](xcuiautomation/xcuicoordinate.md)
