---
title: XCUIElementAttributes
framework: xcuiautomation
role: symbol
role_heading: Protocol
path: xcuiautomation/xcuielementattributes
---

# XCUIElementAttributes

Attributes exposed by UI elements.

## Declaration

```swift
@MainActor protocol XCUIElementAttributes
```

## Overview

Overview The XCUIElementAttributes protocol adds attribute-related functionality to the XCUIElement class. Access these properties on an instance of XCUIElement to query the current state of the UI element’s attributes. note: The attributes provided by this protocol represent data exposed to the Accessibility system, and are available during query matching.

## Topics

### Identity

- [identifier](xcuiautomation/xcuielementattributes/identifier.md)
- [elementType](xcuiautomation/xcuielementattributes/elementtype.md)
- [XCUIElement.ElementType](xcuiautomation/xcuielement/elementtype.md)

### Value

- [value](xcuiautomation/xcuielementattributes/value.md)
- [placeholderValue](xcuiautomation/xcuielementattributes/placeholdervalue.md)
- [title](xcuiautomation/xcuielementattributes/title.md)
- [label](xcuiautomation/xcuielementattributes/label.md)

### Interaction state

- [hasFocus](xcuiautomation/xcuielementattributes/hasfocus.md)
- [isEnabled](xcuiautomation/xcuielementattributes/isenabled.md)
- [isSelected](xcuiautomation/xcuielementattributes/isselected.md)

### Size

- [frame](xcuiautomation/xcuielementattributes/frame.md)
- [horizontalSizeClass](xcuiautomation/xcuielementattributes/horizontalsizeclass.md)
- [verticalSizeClass](xcuiautomation/xcuielementattributes/verticalsizeclass.md)
- [XCUIElement.SizeClass](xcuiautomation/xcuielement/sizeclass.md)

## Relationships

### Inherited By

- [XCUIElementSnapshot](xcuiautomation/xcuielementsnapshot.md)

### Conforming Types

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

## See Also

### UI elements

- [XCUIElement](xcuiautomation/xcuielement.md)
- [XCUIElementSnapshot](xcuiautomation/xcuielementsnapshot.md)
- [XCUIElementSnapshotProviding](xcuiautomation/xcuielementsnapshotproviding.md)
- [XCUICoordinate](xcuiautomation/xcuicoordinate.md)
