Instance Method

press(_:)

Simulates the user pressing a physical button.

Declaration

func press(_ button: XCUIDevice.Button)

See Also

Pressing Device Buttons

enum XCUIDevice.Button

A physical button on an iOS device.