Files
enviPy-bayer/static/js/ketcher2/node_modules/webdriverio/lib/protocol/toggleTouchIdEnrollment.js
2025-06-23 20:13:54 +02:00

22 lines
612 B
JavaScript

/**
*
* Toggle enroll touchId for IOS Simulator
*
* <example>
:touchId.js
it('should enroll touchId on simulator', function () {
browser.toggleTouchIdEnrollment(); // toggles touchId enrollment
});
* </example>
*
* @param {Boolean} match if true the command simulates a valid fingerprint
*
* @type mobile
* @for ios
* @see https://github.com/appium/appium-base-driver/blob/master/docs/mjsonwp/protocol-methods.md
*
*/
export default function toggleTouchIdEnrollment () {
return this.requestHandler.create('session/:session_id/appium/simulator/toggle_touch_id_enrollment')
}