6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/appium_lib_core/ios/uiautomation/device.rb', line 6
def self.add_methods
::Appium::Core::Device.add_endpoint_method(:hide_keyboard) do
def hide_keyboard(close_key = nil, strategy = nil)
option = {}
option[:key] = close_key || 'Done' option[:strategy] = strategy || :pressKey
execute :hide_keyboard, {}, option
end
end
::Appium::Core::Device.add_endpoint_method(:background_app) do
def background_app(duration = 0)
execute :background_app, {}, seconds: duration
end
end
end
|