diff --git a/lib/command_definitions.ts b/lib/command_definitions.ts index 072659a..c8d4802 100644 --- a/lib/command_definitions.ts +++ b/lib/command_definitions.ts @@ -132,6 +132,8 @@ export let hideSoftKeyboard = new CommandDefinition( }); export let getDeviceTime = new CommandDefinition('getDeviceTime', [], 'GET', '/appium/device/system_time'); +export let fingerprint = + new CommandDefinition('fingerprint', ['fingerprintId'], 'POST', '/appium/device/finger_print'); export let openDeviceNotifications = new CommandDefinition( 'openDeviceNotifications', [], 'POST', '/appium/device/open_notifications'); export let rotationGesture = new CommandDefinition( diff --git a/lib/index.ts b/lib/index.ts index c85cc70..ab2f8a9 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -127,6 +127,8 @@ export interface ExtendedWebDriver extends WebDriver { (strategy?: 'default'|'tapOutside'|'tapOut'|'swipeDown'|'pressKey'|'press', key?: string) => wdpromise.Promise; + fingerprint: (fingerprintId: string) => wdpromise.Promise; + // See https://github.com/webdriverio/webdriverio/blob/v4.6.1/lib/protocol/getDeviceTime getDeviceTime: () => wdpromise.Promise;