Contents

press(_:)

Simulates the user pressing a physical button.

Declaration

func press(_ button: XCUIDevice.Button)

Parameters

  • button:

    The button to press on the device.

See Also

Interacting with buttons and the Digital Crown