Class

XCUIDevice

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

Topics

Accessing the Current Device

class var shared: XCUIDevice

The current device.

Pressing Device Buttons

func press(XCUIDevice.Button)

Simulates the user pressing a physical button.

enum XCUIDevice.Button

A physical button on an iOS device.

Device Orientation

var orientation: UIDeviceOrientation

The orientation of the device.

Interacting with Siri

var siriService: XCUISiriService

An object representing the Siri interface on the device.

Relationships

Inherits From

Conforms To

See Also

Device Simulation

class XCUISiriService

Simulates a device's Siri interface.