Biometric Authentication

The XCUITest driver has the capability to simulate biometric authentication, such as Touch ID and Face ID.

Note

This functionality is only supported on simulators that support either Touch ID or Face ID.

The driver provides the following execute methods for managing biometric authentication:

Basic use case:

  1. Call mobile: enrollBiometric
    • By default, this enrolls the device
    • Set isEnabled to false to unenroll
  2. Call mobile: sendBiometricMatch
    • By default, this simulates a Touch ID match
    • Set type to either touchId or faceId, depending on your device
    • Set match to true or false to trigger a match or non-match, respectively