XCUIDevice Class Reference

Inherits from NSObject
Declared in XCUIDevice.h

Overview

Represents a device, providing an interface for simulating events involving physical buttons and device state.

+ sharedDevice

The current device.

+ (XCUIDevice *)sharedDevice

Declared In

XCUIDevice.h

  orientation

The orientation of the device.

@property (nonatomic) UIDeviceOrientation orientation

Declared In

XCUIDevice.h

– pressButton:

Simulates the user pressing a physical button.

- (void)pressButton:(XCUIDeviceButton)button

Declared In

XCUIDevice.h