Given below are the most common Element types available for iOS
Element Type | Description | Common Attributes |
---|---|---|
XCUIElementTypeTextField | Used for input text fields such as Username, email, Name e.t.c | value, text, name |
XCUIElementTypeSecureTextField | Used for password input fields which hide the entered text | value, text, name |
XCUIElementTypeButton | Used for showing Buttons | text, name |
XCUIElementTypeSwitch | Used mostly for toggle switch | value, text, name |
XCUIElementTypePickerWheel | Used for showing selector such as country selector, date selector or any selector to select from given options | name |
XCUIElementTypeSlider | Used for showing a slider Element which can be slided horizontally such as Brightness, Volume slider | name |
XCUIElementTypeImage | Used for showing Images | name |
XCUIElementTypeSearchField | Used for showing Search Fields | value, text, name |
XCUIElementTypeLink | Used for showing Hyperlinks | value, text, name |
XCUIElementTypeDatePicker | User for showing Date picker Elements | value, text, name |
Some other less common Element types are:
- XCUIElementTypeActivityIndicator
- XCUIElementTypeProgressIndicator
- XCUIElementTypeAlert
- XCUIElementTypeWindow
- XCUIElementTypeOther
- XCUIElementTypeStaticText
- XCUIElementTypeNavigationBar
- XCUIElementTypeSegmentedControl
- XCUIElementTypeMap
- XCUIElementTypeStatusBar