XCUIRemote Class Reference

Inherits from NSObject
Declared in XCUIRemote.h

Overview

@class XCUIRemote

Simulates interaction with a physical remote control.

+ sharedRemote

The simulated physical remote control.

+ (instancetype)sharedRemote

Declared In

XCUIRemote.h

– pressButton:

Sends a momentary press of a button on a physical remote control.

- (void)pressButton:(XCUIRemoteButton)remoteButton

Discussion

@param remoteButton The button on the physical remote control for which to synthesize a press.

Declared In

XCUIRemote.h

– pressButton:forDuration:

Sends a press and hold of a button on a physical remote control, holding for the specified duration.

- (void)pressButton:(XCUIRemoteButton)remoteButton forDuration:(NSTimeInterval)duration

Discussion

@param remoteButton The button on the physical remote control for which to synthesize a press.

@param duration Duration in seconds.

Declared In

XCUIRemote.h