A UI element in an application.
SDK
- Xcode 7.0+
Framework
- XCTest
Declaration
class XCUIElement : NSObject
Overview
On macOS, XCUIElement
provides keyboard- and mouse-like interactions such as typing, hovering, clicking, and scrolling. On iOS, XCUIElement
provides gestural interactions such as tapping, pressing, swiping, pinching, and rotating.
Note
The XCUIElement
protocol, as adopted by XCUIElement
, provides additional properties for querying the current state of a UI element's attributes.