178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
# File 'lib/appium_lib_core/ios/xcuitest/device.rb', line 178
def extended(_mod)
::Appium::Core::Device.add_endpoint_method(:hide_keyboard) do
def hide_keyboard(close_key = nil)
option = {}
option[:key] = close_key if close_key
execute_script 'mobile:hideKeyboard', option
end
end
::Appium::Core::Device.add_endpoint_method(:background_app) do
def background_app(duration = 0)
execute_script 'mobile:backgroundApp', { seconds: duration }
end
end
Performance.add_methods
Screen.add_methods
Battery.add_methods
end
|