Module: Appium::Ios::Device
- Extended by:
- Forwardable
- Defined in:
- lib/appium_lib_core/ios/device.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#toggle_touch_id_enrollment(enabled = true) ⇒ String
An instance method of Appium::Core::Device .
-
#touch_id(match = true) ⇒ String
An instance method of Appium::Core::Device .
Class Method Details
.extended(_mod) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/appium_lib_core/ios/device.rb', line 36 def extended(_mod) ::Appium::Core::Device.extend_webdriver_with_forwardable ::Appium::Core::Device.add_endpoint_method(:touch_id) do def touch_id(match = true) execute :touch_id, {}, match: match end end ::Appium::Core::Device.add_endpoint_method(:toggle_touch_id_enrollment) do def toggle_touch_id_enrollment(enabled = true) execute :toggle_touch_id_enrollment, {}, enabled: enabled end end end |
Instance Method Details
#toggle_touch_id_enrollment(enabled = true) ⇒ String
An instance method of Appium::Core::Device . Toggle touch id enrollment on an iOS Simulator.
|
# File 'lib/appium_lib_core/ios/device.rb', line 18
|
#touch_id(match = true) ⇒ String
An instance method of Appium::Core::Device . Simulate Touch ID with either valid (match == true) or invalid (match == false) fingerprint.
|
# File 'lib/appium_lib_core/ios/device.rb', line 6
|