---
title: selected
framework: xcuiautomation
role: symbol
role_heading: Type Property
path: xcuiautomation/xcuielement/attributename/selected
---

# selected

A string constant that serves as a dictionary key identifying whether an element is selected.

## Declaration

```swift
static let selected: XCUIElement.AttributeName
```

## See Also

### Keys

- [children](xcuiautomation/xcuielement/attributename/children.md)
- [elementType](xcuiautomation/xcuielement/attributename/elementtype.md)
- [enabled](xcuiautomation/xcuielement/attributename/enabled.md)
- [frame](xcuiautomation/xcuielement/attributename/frame.md)
- [hasFocus](xcuiautomation/xcuielement/attributename/hasfocus.md)
- [horizontalSizeClass](xcuiautomation/xcuielement/attributename/horizontalsizeclass.md)
- [identifier](xcuiautomation/xcuielement/attributename/identifier.md)
- [label](xcuiautomation/xcuielement/attributename/label.md)
- [placeholderValue](xcuiautomation/xcuielement/attributename/placeholdervalue.md)
- [title](xcuiautomation/xcuielement/attributename/title.md)
- [value](xcuiautomation/xcuielement/attributename/value.md)
- [verticalSizeClass](xcuiautomation/xcuielement/attributename/verticalsizeclass.md)
