Module: Appium::Core::Android::Device::Authentication
- Defined in:
- lib/appium_lib_core/android/device/auth_finger_print.rb
Class Method Summary collapse
Class Method Details
.add_methods ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/appium_lib_core/android/device/auth_finger_print.rb', line 6 def self.add_methods ::Appium::Core::Device.add_endpoint_method(:finger_print) do def finger_print(finger_id) unless (1..10).cover? finger_id.to_i raise ArgumentError, "finger_id should be integer between 1 to 10. Not #{finger_id}" end execute(:finger_print, {}, { fingerprintId: finger_id.to_i }) end end end |