XCUIDeviceButton Constants Reference
Declared in | XCUIDevice.h |
---|
XCUIDeviceButton
@enum XCUIDeviceButton
Represents a physical button on a device.
Note: Some buttons are not available in the Simulator, and should not be used in your tests. You can use a block like this:
if !TARGET_OS_SIMULATOR
// test code that depends on buttons not available in the Simulator
endif
in your test code to ensure it does not call unavailable APIs.
Definition
typedef NS_ENUM(NSInteger, XCUIDeviceButton ) {
XCUIDeviceButtonHome = 1,
XCUIDeviceButtonVolumeUp = 2,
XCUIDeviceButtonVolumeDown = 3,
};
Constants
Declared In
XCUIDevice.h