Skip to content
This repository was archived by the owner on Mar 20, 2024. It is now read-only.

Add fingerprint appium #28

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/command_definitions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ export let hideSoftKeyboard = new CommandDefinition<void>(
});
export let getDeviceTime =
new CommandDefinition<string>('getDeviceTime', [], 'GET', '/appium/device/system_time');
export let fingerprint =
new CommandDefinition<void>('fingerprint', ['fingerprintId'], 'POST', '/appium/device/finger_print');
export let openDeviceNotifications = new CommandDefinition<void>(
'openDeviceNotifications', [], 'POST', '/appium/device/open_notifications');
export let rotationGesture = new CommandDefinition(
Expand Down
2 changes: 2 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ export interface ExtendedWebDriver extends WebDriver {
(strategy?: 'default'|'tapOutside'|'tapOut'|'swipeDown'|'pressKey'|'press',
key?: string) => wdpromise.Promise<void>;

fingerprint: (fingerprintId: string) => wdpromise.Promise<void>;

// See https://github.com/webdriverio/webdriverio/blob/v4.6.1/lib/protocol/getDeviceTime
getDeviceTime: () => wdpromise.Promise<string>;

Expand Down