Module: Appium::Ios::Xcuitest::Device
- Extended by:
- Forwardable
- Defined in:
- lib/appium_lib_core/ios/xcuitest/device.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#background_app(duration = 0) ⇒ Object
Backgrounds the app for a set number of seconds.
-
#hide_keyboard(close_key = nil, strategy = nil) ⇒ Object
Hide the onscreen keyboard.
- #start_recording_screen(remote_path: nil, user: nil, pass: nil, method: nil, force_restart: nil, video_type: 'mp4', time_limit: '180', video_quality: 'medium') ⇒ Object
Class Method Details
.extended(_mod) ⇒ Object
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 69 def extended(_mod) ::Appium::Core::Device.extend_webdriver_with_forwardable # Override ::Appium::Core::Device.add_endpoint_method(:hide_keyboard) do def hide_keyboard(close_key = nil, strategy = nil) option = {} option[:key] = close_key if close_key option[:strategy] = strategy if strategy execute :hide_keyboard, {}, option end end # Override ::Appium::Core::Device.add_endpoint_method(:background_app) do def background_app(duration = 0) # https://github.com/appium/ruby_lib/issues/500, https://github.com/appium/appium/issues/7741 # `execute :background_app, {}, seconds: { timeout: duration_milli_sec }` works over Appium 1.6.4 duration_milli_sec = duration.nil? ? nil : duration * 1000 execute :background_app, {}, seconds: { timeout: duration_milli_sec } end end add_screen_recording end |
Instance Method Details
#background_app(duration = 0) ⇒ Object
Backgrounds the app for a set number of seconds. This is a blocking application.
|
|
# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 22
|
#hide_keyboard(close_key = nil, strategy = nil) ⇒ Object
Hide the onscreen keyboard
|
|
# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 9
|
#start_recording_screen(remote_path: nil, user: nil, pass: nil, method: nil, force_restart: nil, video_type: 'mp4', time_limit: '180', video_quality: 'medium') ⇒ Object
|
|
# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 34
|