Expand description
§Bindings to the XCUIAutomation framework
See Apple’s docs and the general docs on framework crates for more information.
Structs§
- XCUI
Accessibility Audit Issue - Represents an issue returned by an accessibility audit.
- XCUI
Accessibility Audit Type - Bitmasks for use with [XCUIApplication performAccessibilityAuditWithAuditTypes:issueHandler:error:]. These represent the types of audits that can be run, and they can be combined using bitwise OR.
- XCUI
Application - Proxy for an application that may or may not be running.
- XCUI
Application State - Apple’s documentation
- XCUI
Coordinate - A coordinate represents a location on screen, relative to some element. Coordinates are dynamic, just like the elements to which they refer, and may compute different screen locations at different times, or be invalid if the referenced element does not exist.
- XCUI
Device - Represents a device, providing an interface for simulating events involving physical buttons and device state.
- XCUI
Device Appearance - Represents the light or dark UI style of a device.
- XCUI
Element - Elements are objects encapsulating the information needed to dynamically locate a user interface element in an application. Elements are described in terms of queries /seealso XCUIElementQuery.
- XCUI
Element Query - Object for locating elements that can be chained with other queries.
- XCUI
Element Type - Apple’s documentation
- XCUI
KeyModifier Flags - Apple’s documentation
- XCUI
Location - Represents a device’s simulated location by wrapping a CLLocation object from Core Location
- XCUI
Protected Resource - Apple’s documentation
- XCUI
Remote Button - A button on a physical remote control.
- XCUI
Screen - Represents an active screen of a device. One screen of each device is designated as the “main” screen, on macOS that is the one owning the menu bar, on other platforms it is the primary screen of the device.
- XCUI
Screenshot - Represents a captured screenshot.
- XCUI
System - Represents a device’s base system, providing an interface for performing OS-specific actions like opening universal links.
- XCUI
User Interface Size Class - Apple’s documentation
Statics§
- XCUI
Element ⚠Attribute Name Children - An array of the element’s children.
- XCUI
Element ⚠Attribute Name Element Type - The element’s type, an NSNumber-wrapped XCUIElementType.
- XCUI
Element ⚠Attribute Name Enabled - True if the element is enabled, false otherwise, an NSNumber-wrapped BOOL.
- XCUI
Element ⚠Attribute Name Frame - A dictionary representation of the element’s frame, as returned by CGRectCreateDictionaryRepresentation.
- XCUI
Element ⚠Attribute Name HasFocus - True if the element is focused, false otherwise, an NSNumber-wrapped BOOL.
- XCUI
Element ⚠Attribute Name Horizontal Size Class - The element’s horizontal size class, an NSNumber-wrapped XCUIUserInterfaceSizeClass.
- XCUI
Element ⚠Attribute Name Identifier - The element’s accessibility identifier.
- XCUI
Element ⚠Attribute Name Label - The element’s label.
- XCUI
Element ⚠Attribute Name Placeholder Value - The element’s placeholder value.
- XCUI
Element ⚠Attribute Name Selected - True if the element is selected, false otherwise, an NSNumber-wrapped BOOL.
- XCUI
Element ⚠Attribute Name Title - The element’s title.
- XCUI
Element ⚠Attribute Name Value - The element’s accessibility value, an NSString or NSNumber.
- XCUI
Element ⚠Attribute Name Vertical Size Class - The element’s vertical size class, an NSNumber-wrapped XCUIUserInterfaceSizeClass.
- XCUI
Gesture ⚠Velocity Default objc2-core-foundation - Apple’s documentation
- XCUI
Gesture ⚠Velocity Fast objc2-core-foundation - Apple’s documentation
- XCUI
Gesture ⚠Velocity Slow objc2-core-foundation - Apple’s documentation
- XCUI
Identifier ⚠Close Window - Apple’s documentation
- XCUI
Identifier ⚠Full Screen Window - Apple’s documentation
- XCUI
Identifier ⚠Minimize Window - Apple’s documentation
- XCUI
Identifier ⚠Zoom Window - Apple’s documentation
- XCUI
Keyboard ⚠KeyCaps Lock - Apple’s documentation
- XCUI
Keyboard ⚠KeyClear - Apple’s documentation
- XCUI
Keyboard ⚠KeyCommand - Apple’s documentation
- XCUI
Keyboard ⚠KeyControl - Apple’s documentation
- XCUI
Keyboard ⚠KeyDelete - Apple’s documentation
- XCUI
Keyboard ⚠KeyDown Arrow - Apple’s documentation
- XCUI
Keyboard ⚠KeyEnd - Apple’s documentation
- XCUI
Keyboard ⚠KeyEnter - Apple’s documentation
- XCUI
Keyboard ⚠KeyEscape - Apple’s documentation
- XCUI
Keyboard ⚠KeyF1 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF2 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF3 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF4 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF5 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF6 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF7 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF8 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF9 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF10 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF11 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF12 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF13 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF14 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF15 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF16 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF17 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF18 - Apple’s documentation
- XCUI
Keyboard ⚠KeyF19 - Apple’s documentation
- XCUI
Keyboard ⚠KeyForward Delete - Apple’s documentation
- XCUI
Keyboard ⚠KeyHelp - Apple’s documentation
- XCUI
Keyboard ⚠KeyHome - Apple’s documentation
- XCUI
Keyboard ⚠KeyLeft Arrow - Apple’s documentation
- XCUI
Keyboard ⚠KeyOption - Apple’s documentation
- XCUI
Keyboard ⚠KeyPage Down - Apple’s documentation
- XCUI
Keyboard ⚠KeyPage Up - Apple’s documentation
- XCUI
Keyboard ⚠KeyReturn - Apple’s documentation
- XCUI
Keyboard ⚠KeyRight Arrow - Apple’s documentation
- XCUI
Keyboard ⚠KeyRight Command - Apple’s documentation
- XCUI
Keyboard ⚠KeyRight Control - Apple’s documentation
- XCUI
Keyboard ⚠KeyRight Option - Apple’s documentation
- XCUI
Keyboard ⚠KeyRight Shift - Apple’s documentation
- XCUI
Keyboard ⚠KeySecondary Fn - Apple’s documentation
- XCUI
Keyboard ⚠KeyShift - Apple’s documentation
- XCUI
Keyboard ⚠KeySpace - Apple’s documentation
- XCUI
Keyboard ⚠KeyTab - Apple’s documentation
- XCUI
Keyboard ⚠KeyUp Arrow - Apple’s documentation
Traits§
- XCUI
Element Attributes - Protocol describing the attributes exposed on user interface elements and available during query matching. These attributes represent data exposed to the Accessibility system.
- XCUI
Element Snapshot - Apple’s documentation
- XCUI
Element Snapshot Providing - Apple’s documentation
- XCUI
Element Type Query Provider - Apple’s documentation
- XCUI
Screenshot Providing - Apple’s documentation
Type Aliases§
- XCUI
Element Attribute Name - such as the dictionaries returned by XCUIElement.dictionaryRepresentation.
- XCUI
Gesture Velocity objc2-core-foundation - Apple’s documentation
- XCUI
Keyboard Key - Constants for use with -[XCUIElement typeKey:modifierFlags:], representing keys that have no textual representation. These comprise the set of control, function, and modifier keys found on most keyboards.