Class

XCUIDevice

Simulates physical buttons, device orientation, and Siri interaction for an iOS device.

Declaration

@interface XCUIDevice : NSObject

Topics

Accessing the Current Device

sharedDevice

The current device.

Pressing Device Buttons

- pressButton:

Simulates the user pressing a physical button.

XCUIDeviceButton

A physical button on an iOS device.

Device Orientation

orientation

The orientation of the device.

Interacting with Siri

siriService

An object representing the Siri interface on the device.

Initializers

- initDeprecated

Relationships

Inherits From

See Also

Device Simulation

XCUISiriService

Simulates a device’s Siri interface.