XCUIElementAttributes Protocol Reference
| Declared in | XCUIElementAttributes.h |
|---|
Overview
Protocol describing the attributes exposed on user interface elements and available during query matching. These attributes represent data exposed to the Accessibility system.
identifier
required method
The accessibility identifier.
@property (readonly) NSString *identifierDeclared In
XCUIElementAttributes.h
frame
required method
The frame of the element in the screen coordinate space.
@property (readonly) CGRect frameDeclared In
XCUIElementAttributes.h
value
required method
The raw value attribute of the element. Depending on the element, the actual type can vary.
@property (readonly, nullable) id valueDeclared In
XCUIElementAttributes.h
title
required method
The title attribute of the element.
@property (readonly, copy) NSString *titleDeclared In
XCUIElementAttributes.h
label
required method
The label attribute of the element.
@property (readonly, copy) NSString *labelDeclared In
XCUIElementAttributes.h
elementType
required method
The type of the element. /seealso XCUIElementType.
@property (readonly) XCUIElementType elementTypeDeclared In
XCUIElementAttributes.h
enabled
required method
Whether or not the element is enabled for user interaction.
@property (readonly, getter=isEnabled) BOOL enabledDeclared In
XCUIElementAttributes.h
horizontalSizeClass
required method
The horizontal size class of the element.
@property (readonly) XCUIUserInterfaceSizeClass horizontalSizeClassDeclared In
XCUIElementAttributes.h
verticalSizeClass
required method
The vertical size class of the element.
@property (readonly) XCUIUserInterfaceSizeClass verticalSizeClassDeclared In
XCUIElementAttributes.h
placeholderValue
required method
selected
required method
Whether or not the element is selected.
@property (readonly, getter=isSelected) BOOL selectedDeclared In
XCUIElementAttributes.h
hasFocus
required method
Whether or not the elment has UI focus.
@property (readonly) BOOL hasFocusDeclared In
XCUIElementAttributes.h