// // Copyright (c) 2015 Apple Inc. All rights reserved. // #import #import #if XCT_UI_TESTING_AVAILABLE #if TARGET_OS_IPHONE #import typedef NS_ENUM(NSInteger, XCUIUserInterfaceSizeClass) { XCUIUserInterfaceSizeClassUnspecified = UIUserInterfaceSizeClassUnspecified, XCUIUserInterfaceSizeClassCompact = UIUserInterfaceSizeClassCompact, XCUIUserInterfaceSizeClassRegular = UIUserInterfaceSizeClassRegular, }; #else #import typedef NS_ENUM(NSInteger, XCUIUserInterfaceSizeClass) { XCUIUserInterfaceSizeClassUnspecified = 0, }; #endif NS_ASSUME_NONNULL_BEGIN /*! Protocol describing the attributes exposed on user interface elements and available during query matching. These attributes represent data exposed to the Accessibility system. */ @protocol XCUIElementAttributes /*! The accessibility identifier. */ @property (readonly) NSString *identifier; /*! The frame of the element in the screen coordinate space. */ @property (readonly) CGRect frame; /*! The raw value attribute of the element. Depending on the element, the actual type can vary. */ @property (readonly, nullable) id value; /*! The title attribute of the element. */ @property (readonly, copy) NSString *title; /*! The label attribute of the element. */ @property (readonly, copy) NSString *label; /*! The type of the element. /seealso XCUIElementType. */ @property (readonly) XCUIElementType elementType; /*! Whether or not the element is enabled for user interaction. */ @property (readonly, getter = isEnabled) BOOL enabled; /*! The horizontal size class of the element. */ @property (readonly) XCUIUserInterfaceSizeClass horizontalSizeClass; /*! The vertical size class of the element. */ @property (readonly) XCUIUserInterfaceSizeClass verticalSizeClass; /*! The value that is displayed when the element has no value. */ @property (readonly, nullable) NSString *placeholderValue; /*! Whether or not the element is selected. */ @property (readonly, getter = isSelected) BOOL selected; #if TARGET_OS_TV /*! Whether or not the elment has UI focus. */ @property (readonly) BOOL hasFocus; #endif @end NS_ASSUME_NONNULL_END #endif