<!--
{
  "availability" : [
    "Xcode: 16.3.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUIElement/ElementType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "c:@E@XCUIElementType"
  },
  "title" : "XCUIElement.ElementType"
}
-->

# XCUIElement.ElementType

The types of UI elements that you find, inspect, and interact with in a UI test.

```
enum ElementType
```

## Topics

### Enumeration cases

[`XCUIElement.ElementType.activityIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/activityIndicator)

A constant that represents an element type for activity indicator views.

[`XCUIElement.ElementType.alert`](/documentation/XCUIAutomation/XCUIElement/ElementType/alert)

A constant that represents an element type for alert views.

[`XCUIElement.ElementType.any`](/documentation/XCUIAutomation/XCUIElement/ElementType/any)

A constant that represents an element type for any view or control.

[`XCUIElement.ElementType.application`](/documentation/XCUIAutomation/XCUIElement/ElementType/application)

A constant that represents an element type for an application.

[`XCUIElement.ElementType.browser`](/documentation/XCUIAutomation/XCUIElement/ElementType/browser)

A constant that represents an element type for a browser.

[`XCUIElement.ElementType.button`](/documentation/XCUIAutomation/XCUIElement/ElementType/button)

A constant that represents an element type for button controls.

[`XCUIElement.ElementType.cell`](/documentation/XCUIAutomation/XCUIElement/ElementType/cell)

A constant that represents an element type for cells.

[`XCUIElement.ElementType.checkBox`](/documentation/XCUIAutomation/XCUIElement/ElementType/checkBox)

A constant that represents an element type for checkbox controls.

[`XCUIElement.ElementType.collectionView`](/documentation/XCUIAutomation/XCUIElement/ElementType/collectionView)

A constant that represents an element type for collection views.

[`XCUIElement.ElementType.colorWell`](/documentation/XCUIAutomation/XCUIElement/ElementType/colorWell)

A constant that represents an element type for color-well controls.

[`XCUIElement.ElementType.comboBox`](/documentation/XCUIAutomation/XCUIElement/ElementType/comboBox)

A constant that represents an element type for combo-box controls.

[`XCUIElement.ElementType.datePicker`](/documentation/XCUIAutomation/XCUIElement/ElementType/datePicker)

A constant that represents an element type for date-picker controls.

[`XCUIElement.ElementType.decrementArrow`](/documentation/XCUIAutomation/XCUIElement/ElementType/decrementArrow)

A constant that represents an element type for decrement arrow controls.

[`XCUIElement.ElementType.dialog`](/documentation/XCUIAutomation/XCUIElement/ElementType/dialog)

A constant that represents an element type for dialog views.

[`XCUIElement.ElementType.disclosureTriangle`](/documentation/XCUIAutomation/XCUIElement/ElementType/disclosureTriangle)

A constant that represents an element type for disclosure-triangle controls.

[`XCUIElement.ElementType.dockItem`](/documentation/XCUIAutomation/XCUIElement/ElementType/dockItem)

A constant that represents an element type for dock item controls.

[`XCUIElement.ElementType.drawer`](/documentation/XCUIAutomation/XCUIElement/ElementType/drawer)

A constant that represents an element type for drawers.

[`XCUIElement.ElementType.grid`](/documentation/XCUIAutomation/XCUIElement/ElementType/grid)

A constant that represents an element type for grid views.

[`XCUIElement.ElementType.group`](/documentation/XCUIAutomation/XCUIElement/ElementType/group)

A constant that represents an element type for groups.

[`XCUIElement.ElementType.handle`](/documentation/XCUIAutomation/XCUIElement/ElementType/handle)

A constant that represents an element type for handle controls.

[`XCUIElement.ElementType.helpTag`](/documentation/XCUIAutomation/XCUIElement/ElementType/helpTag)

A constant that represents an element type for help tags.

[`XCUIElement.ElementType.icon`](/documentation/XCUIAutomation/XCUIElement/ElementType/icon)

A constant that represents an element type for icons.

[`XCUIElement.ElementType.image`](/documentation/XCUIAutomation/XCUIElement/ElementType/image)

A constant that represents an element type for image views.

[`XCUIElement.ElementType.incrementArrow`](/documentation/XCUIAutomation/XCUIElement/ElementType/incrementArrow)

A constant that represents an element type for increment arrow controls.

[`XCUIElement.ElementType.key`](/documentation/XCUIAutomation/XCUIElement/ElementType/key)

A constant that represents an element type for keys.

[`XCUIElement.ElementType.keyboard`](/documentation/XCUIAutomation/XCUIElement/ElementType/keyboard)

A constant that represents an element type for keyboards.

[`XCUIElement.ElementType.layoutArea`](/documentation/XCUIAutomation/XCUIElement/ElementType/layoutArea)

A constant that represents an element type for layout areas.

[`XCUIElement.ElementType.layoutItem`](/documentation/XCUIAutomation/XCUIElement/ElementType/layoutItem)

A constant that represents an element type for layout items.

[`XCUIElement.ElementType.levelIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/levelIndicator)

A constant that represents an element type for level indicators.

[`XCUIElement.ElementType.link`](/documentation/XCUIAutomation/XCUIElement/ElementType/link)

A constant that represents an element type for links.

[`XCUIElement.ElementType.map`](/documentation/XCUIAutomation/XCUIElement/ElementType/map)

A constant that represents an element type for map views.

[`XCUIElement.ElementType.matte`](/documentation/XCUIAutomation/XCUIElement/ElementType/matte)

A constant that represents an element type for mattes.

[`XCUIElement.ElementType.menu`](/documentation/XCUIAutomation/XCUIElement/ElementType/menu)

A constant that represents an element type for menus.

[`XCUIElement.ElementType.menuBar`](/documentation/XCUIAutomation/XCUIElement/ElementType/menuBar)

A constant that represents an element type for menu bars.

[`XCUIElement.ElementType.menuBarItem`](/documentation/XCUIAutomation/XCUIElement/ElementType/menuBarItem)

A constant that represents an element type for menu bar items.

[`XCUIElement.ElementType.menuButton`](/documentation/XCUIAutomation/XCUIElement/ElementType/menuButton)

A constant that represents an element type for menu buttons.

[`XCUIElement.ElementType.menuItem`](/documentation/XCUIAutomation/XCUIElement/ElementType/menuItem)

A constant that represents an element type for menu items.

[`XCUIElement.ElementType.navigationBar`](/documentation/XCUIAutomation/XCUIElement/ElementType/navigationBar)

A constant that represents an element type for navigation bars.

[`XCUIElement.ElementType.other`](/documentation/XCUIAutomation/XCUIElement/ElementType/other)

A constant that represents an element type for other views or controls.

[`XCUIElement.ElementType.outline`](/documentation/XCUIAutomation/XCUIElement/ElementType/outline)

A constant that represents an element type for outline views.

[`XCUIElement.ElementType.outlineRow`](/documentation/XCUIAutomation/XCUIElement/ElementType/outlineRow)

A constant that represents an element type for outline rows.

[`XCUIElement.ElementType.pageIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/pageIndicator)

A constant that represents an element type for page-indicator controls.

[`XCUIElement.ElementType.picker`](/documentation/XCUIAutomation/XCUIElement/ElementType/picker)

A constant that represents an element type for picker controls.

[`XCUIElement.ElementType.pickerWheel`](/documentation/XCUIAutomation/XCUIElement/ElementType/pickerWheel)

A constant that represents an element type for picker-wheel controls.

[`XCUIElement.ElementType.popUpButton`](/documentation/XCUIAutomation/XCUIElement/ElementType/popUpButton)

A constant that represents an element type for popup button controls.

[`XCUIElement.ElementType.popover`](/documentation/XCUIAutomation/XCUIElement/ElementType/popover)

A constant that represents an element type for popover views.

[`XCUIElement.ElementType.progressIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/progressIndicator)

A constant that represents an element type for progress-indicator controls.

[`XCUIElement.ElementType.radioButton`](/documentation/XCUIAutomation/XCUIElement/ElementType/radioButton)

A constant that represents radio-button controls.

[`XCUIElement.ElementType.radioGroup`](/documentation/XCUIAutomation/XCUIElement/ElementType/radioGroup)

A constant that represents an element type for radio groups.

[`XCUIElement.ElementType.ratingIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/ratingIndicator)

A constant that represents an element type for rating-indicator views.

[`XCUIElement.ElementType.relevanceIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/relevanceIndicator)

A constant that represents an element type for relevance-indicator views.

[`XCUIElement.ElementType.ruler`](/documentation/XCUIAutomation/XCUIElement/ElementType/ruler)

A constant that represents an element type for ruler views.

[`XCUIElement.ElementType.rulerMarker`](/documentation/XCUIAutomation/XCUIElement/ElementType/rulerMarker)

A constant that represents an element type for ruler markers.

[`XCUIElement.ElementType.scrollBar`](/documentation/XCUIAutomation/XCUIElement/ElementType/scrollBar)

A constant that represents an element type for scroll bars.

[`XCUIElement.ElementType.scrollView`](/documentation/XCUIAutomation/XCUIElement/ElementType/scrollView)

A constant that represents an element type for scroll views.

[`XCUIElement.ElementType.searchField`](/documentation/XCUIAutomation/XCUIElement/ElementType/searchField)

A constant that represents an element type for search fields.

[`XCUIElement.ElementType.secureTextField`](/documentation/XCUIAutomation/XCUIElement/ElementType/secureTextField)

A constant that represents an element type for secure text fields.

[`XCUIElement.ElementType.segmentedControl`](/documentation/XCUIAutomation/XCUIElement/ElementType/segmentedControl)

A constant that represents an element type for segmented controls.

[`XCUIElement.ElementType.sheet`](/documentation/XCUIAutomation/XCUIElement/ElementType/sheet)

A constant that represents an element type for sheets.

[`XCUIElement.ElementType.slider`](/documentation/XCUIAutomation/XCUIElement/ElementType/slider)

A constant that represents an element type for slider controls.

[`XCUIElement.ElementType.splitGroup`](/documentation/XCUIAutomation/XCUIElement/ElementType/splitGroup)

A constant that represents an element type for split groups.

[`XCUIElement.ElementType.splitter`](/documentation/XCUIAutomation/XCUIElement/ElementType/splitter)

A constant that represents an element type for splitters.

[`XCUIElement.ElementType.staticText`](/documentation/XCUIAutomation/XCUIElement/ElementType/staticText)

A constant that represents an element type for static text views.

[`XCUIElement.ElementType.statusBar`](/documentation/XCUIAutomation/XCUIElement/ElementType/statusBar)

A constant that represents an element type for status bars.

[`XCUIElement.ElementType.statusItem`](/documentation/XCUIAutomation/XCUIElement/ElementType/statusItem)

A constant that represents an element type for status items.

[`XCUIElement.ElementType.stepper`](/documentation/XCUIAutomation/XCUIElement/ElementType/stepper)

A constant that represents an element type for stepper controls.

[`XCUIElement.ElementType.switch`](/documentation/XCUIAutomation/XCUIElement/ElementType/switch)

A constant that represents an element type for switch controls.

[`XCUIElement.ElementType.tab`](/documentation/XCUIAutomation/XCUIElement/ElementType/tab)

A constant that represents an element type for tabs.

[`XCUIElement.ElementType.tabBar`](/documentation/XCUIAutomation/XCUIElement/ElementType/tabBar)

A constant that represents an element type for tab bars.

[`XCUIElement.ElementType.tabGroup`](/documentation/XCUIAutomation/XCUIElement/ElementType/tabGroup)

A constant that represents an element type for tab groups.

[`XCUIElement.ElementType.table`](/documentation/XCUIAutomation/XCUIElement/ElementType/table)

A constant that represents an element type for table views.

[`XCUIElement.ElementType.tableColumn`](/documentation/XCUIAutomation/XCUIElement/ElementType/tableColumn)

A constant that represents an element type for table columns.

[`XCUIElement.ElementType.tableRow`](/documentation/XCUIAutomation/XCUIElement/ElementType/tableRow)

A constant that represents an element type for table rows.

[`XCUIElement.ElementType.textField`](/documentation/XCUIAutomation/XCUIElement/ElementType/textField)

A constant that represents an element type for text fields.

[`XCUIElement.ElementType.textView`](/documentation/XCUIAutomation/XCUIElement/ElementType/textView)

A constant that represents an element type for text views.

[`XCUIElement.ElementType.timeline`](/documentation/XCUIAutomation/XCUIElement/ElementType/timeline)

A constant that represents an element type for timeline views.

[`XCUIElement.ElementType.toggle`](/documentation/XCUIAutomation/XCUIElement/ElementType/toggle)

A constant that represents an element type for toggle controls.

[`XCUIElement.ElementType.toolbar`](/documentation/XCUIAutomation/XCUIElement/ElementType/toolbar)

A constant that represents an element type for toolbars.

[`XCUIElement.ElementType.toolbarButton`](/documentation/XCUIAutomation/XCUIElement/ElementType/toolbarButton)

A constant that represents an element type for toolbar buttons.

[`XCUIElement.ElementType.touchBar`](/documentation/XCUIAutomation/XCUIElement/ElementType/touchBar)

A constant that represents an element type for touch bars.

[`XCUIElement.ElementType.valueIndicator`](/documentation/XCUIAutomation/XCUIElement/ElementType/valueIndicator)

A constant that represents an element type for value indicators.

[`XCUIElement.ElementType.webView`](/documentation/XCUIAutomation/XCUIElement/ElementType/webView)

A constant that represents an element type for web views.

[`XCUIElement.ElementType.window`](/documentation/XCUIAutomation/XCUIElement/ElementType/window)

A constant that represents an element type for windows.



---

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)