Skip to content

Commit 202cf85

Browse files
authored
Merge pull request #187 from peritus/master
Add keywords for Touch ID
2 parents 72c489f + 26de40e commit 202cf85

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

AppiumLibrary/keywords/_applicationmanagement.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,20 @@ def background_app(self, seconds=5):
203203
"""
204204
self._current_application().background_app(seconds)
205205

206+
def touch_id(self, match=True):
207+
"""
208+
Simulate Touch ID on iOS Simulator
209+
210+
`match` (boolean) whether the simulated fingerprint is valid (default true)
211+
"""
212+
self._current_application().touch_id(match)
213+
214+
def toggle_touch_id_enrollment(self):
215+
"""
216+
Toggle Touch ID enrolled state on iOS Simulator
217+
"""
218+
self._current_application().toggle_touch_id_enrollment()
219+
206220
def shake(self):
207221
"""
208222
Shake the device

0 commit comments

Comments
 (0)