Module: Appium::Core::Ios::Device
- Extended by:
- Forwardable
- Includes:
- _Bridge
- Defined in:
- lib/appium_lib_core/ios/device.rb,
lib/appium_lib_core/ios/device/clipboard.rb,
sig/lib/appium_lib_core/ios/device.rbs,
sig/lib/appium_lib_core/ios/device/clipboard.rbs
Defined Under Namespace
Modules: Clipboard
Class Method Summary collapse
Instance Method Summary collapse
-
#get_clipboard(content_type: :plaintext) ⇒ Object
Set the content of device's clipboard.
-
#set_clipboard(content:, content_type: :plaintext) ⇒ Object
Set the content of device's clipboard.
-
#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 .
Methods included from Forwardable
def_delegator, def_delegators, def_instance_delegator, def_instance_delegators, def_single_delegator, def_single_delegators
Methods included from _Bridge
#bridge, #execute, #execute_async_script, #execute_script
Class Method Details
.extended(_mod) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/appium_lib_core/ios/device.rb', line 73 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_script 'mobile:sendBiometricMatch', { 'type': '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_script 'mobile:enrollBiometric', { 'isEnabled': enabled } end end Clipboard.add_methods end |
.toggle_touch_id_enrollment ⇒ Object
8 |
# File 'sig/lib/appium_lib_core/ios/device.rbs', line 8
def self.toggle_touch_id_enrollment: -> untyped
|
Instance Method Details
#get_clipboard(content_type: :plaintext) ⇒ Object
Set the content of device's clipboard.
|
|
# File 'lib/appium_lib_core/ios/device.rb', line 48
|
#set_clipboard(content:, content_type: :plaintext) ⇒ Object
Set the content of device's clipboard.
|
|
# File 'lib/appium_lib_core/ios/device.rb', line 58
|
#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 35
|
#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 23
|