Sha256: ec9e818e30d15c4ae3ddcab7d6ece17f8fdb9397fde75e174f71b0f73f23bbeb

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

module Appium
  module Core
    module Device
      module ImeActions
        def self.add_methods
          ::Appium::Core::Device.add_endpoint_method(:ime_activate) do
            def ime_activate(ime_name)
              # from Selenium::WebDriver::Remote::OSS
              execute :ime_activate_engine, {}, engine: ime_name
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:ime_available_engines) do
            def ime_available_engines
              execute :ime_get_available_engines
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:ime_active_engine) do
            # from Selenium::WebDriver::Remote::OSS
            def ime_active_engine
              execute :ime_get_active_engine
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:ime_activated) do
            # from Selenium::WebDriver::Remote::OSS
            def ime_activated
              execute :ime_is_activated
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:ime_deactivate) do
            # from Selenium::WebDriver::Remote::OSS
            def ime_deactivate
              execute :ime_deactivate, {}
            end
          end
        end
      end # module ImeActions
    end # module Device
  end # module Core
end # module Appium

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
appium_lib_core-1.7.2 lib/appium_lib_core/device/ime_actions.rb
appium_lib_core-1.7.1 lib/appium_lib_core/device/ime_actions.rb
appium_lib_core-1.7.0 lib/appium_lib_core/device/ime_actions.rb