---
title: XCUIDevice.Button.action
framework: xcuiautomation
role: symbol
role_heading: Case
path: xcuiautomation/xcuidevice/button/action
---

# XCUIDevice.Button.action

The device’s action button.

## Declaration

```swift
case action
```

## Discussion

Discussion The button you use for specific actions in workout apps, available in watchOS 9 and later on Apple Watch Ultra. You can use hasHardwareButton(_:) to check for its availability from your test.

## See Also

### Device buttons

- [XCUIDevice.Button.home](xcuiautomation/xcuidevice/button/home.md)
- [XCUIDevice.Button.volumeUp](xcuiautomation/xcuidevice/button/volumeup.md)
- [XCUIDevice.Button.volumeDown](xcuiautomation/xcuidevice/button/volumedown.md)
- [XCUIDevice.Button.camera](xcuiautomation/xcuidevice/button/camera.md)
