---
title: isSelected
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielementattributes/isselected
---

# isSelected

The property that determines whether the element is selected.

## Declaration

```swift
var isSelected: Bool { get }
```

## See Also

### Interaction state

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