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:
- Call
mobile: enrollBiometric- By default, this enrolls the device
- Set
isEnabledtofalseto unenroll
- Call
mobile: sendBiometricMatch- By default, this simulates a Touch ID match
- Set
typeto eithertouchIdorfaceId, depending on your device - Set
matchtotrueorfalseto trigger a match or non-match, respectively