forked from enviPath/enviPy
Current Dev State
This commit is contained in:
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchId.js
generated
vendored
Normal file
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/touchId.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
*
|
||||
* Simulate Touch ID with either valid (match == true) or invalid (match == false) fingerprint.
|
||||
*
|
||||
* <example>
|
||||
:touchId.js
|
||||
it('should simulate fingerprint', function () {
|
||||
browser.touchId(); // simulates valid fingerprint
|
||||
browser.touchId(true); // simulates valid fingerprint
|
||||
browser.touchId(false); // simulates invalid fingerprint
|
||||
});
|
||||
* </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 touchId (match = true) {
|
||||
return this.requestHandler.create('session/:session_id/appium/simulator/touch_id', { match })
|
||||
}
|
||||
Reference in New Issue
Block a user