From a137358b46b3e95717811367957a6c9259242f7f Mon Sep 17 00:00:00 2001 From: Laura Le Padellec Date: Tue, 15 Jan 2019 17:21:33 +0100 Subject: [PATCH 1/2] Add support for Appium command finger_print --- lib/command_definitions.ts | 2 ++ lib/index.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/command_definitions.ts b/lib/command_definitions.ts index 072659a..5e71733 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'); +exports.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; From 7c984625f3f293413a3a1eca6b4d4d48c8ce19ee Mon Sep 17 00:00:00 2001 From: Laura Le Padellec Date: Tue, 15 Jan 2019 17:27:51 +0100 Subject: [PATCH 2/2] Fix new command definition. --- lib/command_definitions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/command_definitions.ts b/lib/command_definitions.ts index 5e71733..c8d4802 100644 --- a/lib/command_definitions.ts +++ b/lib/command_definitions.ts @@ -132,8 +132,8 @@ export let hideSoftKeyboard = new CommandDefinition( }); export let getDeviceTime = new CommandDefinition('getDeviceTime', [], 'GET', '/appium/device/system_time'); -exports.fingerprint = - new CommandDefinition('fingerprint', ['fingerprintId'], 'POST', '/appium/device/finger_print'); +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(