<!--
{
  "availability" : [
    "Xcode: 16.3.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUIElement/KeyModifierFlags/alternate",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "c:@E@XCUIKeyModifierFlags@XCUIKeyModifierAlternate"
  },
  "title" : "alternate"
}
-->

# alternate

The Option key in a combination keystroke.

```
static var alternate: XCUIElement.KeyModifierFlags { get }
```

## Discussion

> Important:
> Use ``doc://com.apple.xcuiautomation/documentation/XCUIAutomation/XCUIElement/KeyModifierFlags/option`` instead.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)