முக்கிய உள்ளடக்கத்திற்குச் செல்லவும்

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.

குறிப்பு

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
NameTypeDetails
enabled
optional
booleanWhether 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

Support for ios

குறிப்பு

Refer to the official Appium driver documentation to see which driver versions support this command.

Welcome! How can I help?

WebdriverIO AI Copilot