Sha256: 05ab245eb5446f98c04aedb9abef18ae431ac88a16224dd52dbe3321019bf572
Contents?: true
Size: 1018 Bytes
Versions: 3
Compression:
Stored size: 1018 Bytes
Contents
module Appium module Core module Ios module Uiautomation module Device def self.add_methods # UiAutomation, Override included method in bridge ::Appium::Core::Device.add_endpoint_method(:hide_keyboard) do def hide_keyboard(close_key = nil, strategy = nil) option = {} option[:key] = close_key || 'Done' # default to Done key. option[:strategy] = strategy || :pressKey # default to pressKey execute :hide_keyboard, {}, option end end # UiAutomation, Override included method in bridge ::Appium::Core::Device.add_endpoint_method(:background_app) do def background_app(duration = 0) execute :background_app, {}, seconds: duration end end end end # module Device end # module Uiautomation end # module Ios end # module Core end # module Appium
Version data entries
3 entries across 3 versions & 1 rubygems