toggleEnrollTouchId
Toggle Touch ID enrollment on iOS Simulator.
Note: Falls back to the deprecated Appium 2 protocol endpoint if the driver does not support the
mobile:execute method.
Hinweis
This command requires the allowTouchIdEnroll capability to be set to true in the session.
It is only supported on iOS Simulator. When enabled is not provided, it defaults to true.
Usage
browser.toggleEnrollTouchId(enabled)
Parameters
| Name | Type | Details |
|---|---|---|
enabledoptional | boolean | Whether to enable (true) or disable (false) Touch ID enrollment. Defaults to true. |
Example
toggleEnrollTouchId.js
it('should toggle Touch ID enrollment', async () => {
// Enable Touch ID enrollment
await browser.toggleEnrollTouchId(true)
// Disable Touch ID enrollment
await browser.toggleEnrollTouchId(false)
})
Support
Hinweis
Refer to the official Appium driver documentation to see which driver versions support this command.