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 *identifier

Declared In

XCUIElementAttributes.h

  frame required method

The frame of the element in the screen coordinate space.

@property (readonly) CGRect frame

Declared 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 value

Declared In

XCUIElementAttributes.h

  title required method

The title attribute of the element.

@property (readonly, copy) NSString *title

Declared In

XCUIElementAttributes.h

  label required method

The label attribute of the element.

@property (readonly, copy) NSString *label

Declared In

XCUIElementAttributes.h

  elementType required method

The type of the element. /seealso XCUIElementType.

@property (readonly) XCUIElementType elementType

Declared In

XCUIElementAttributes.h

  enabled required method

Whether or not the element is enabled for user interaction.

@property (readonly, getter=isEnabled) BOOL enabled

Declared In

XCUIElementAttributes.h

  horizontalSizeClass required method

The horizontal size class of the element.

@property (readonly) XCUIUserInterfaceSizeClass horizontalSizeClass

Declared In

XCUIElementAttributes.h

  verticalSizeClass required method

The vertical size class of the element.

@property (readonly) XCUIUserInterfaceSizeClass verticalSizeClass

Declared In

XCUIElementAttributes.h

  placeholderValue required method

The value that is displayed when the element has no value.

@property (readonly, nullable) NSString *placeholderValue

Declared In

XCUIElementAttributes.h

  selected required method

Whether or not the element is selected.

@property (readonly, getter=isSelected) BOOL selected

Declared In

XCUIElementAttributes.h

  hasFocus required method

Whether or not the elment has UI focus.

@property (readonly) BOOL hasFocus

Declared In

XCUIElementAttributes.h