---
title: accessibilityPerformPress()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nsaccessibilityprotocol/accessibilityperformpress()
---

# accessibilityPerformPress()

Simulates clicking the accessibility element.

## Declaration

```swift
func accessibilityPerformPress() -> Bool
```

## Return Value

Return Value true if the action was successfully triggered; otherwise, false. This method does not indicate the success or failure of the action, just the fact that the action was successfully triggered.

## Discussion

Discussion Use this method on elements that behave like buttons.

## See Also

### Selecting elements

- [accessibilityPerformPick()](appkit/nsaccessibilityprotocol/accessibilityperformpick().md)
