Instance Method

press(_:forDuration:)

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

Declaration

func press(_ remoteButton: XCUIRemote.Button, forDuration duration: TimeInterval)

Parameters

remoteButton

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

duration

Duration in seconds.

See Also

Pressing Remote Buttons

func press(XCUIRemote.Button)

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

enum XCUIRemoteButton

A button on a physical remote control.