Sha256: dd4fd9e3ebdbbded3974f9a50506683aba574777e368ffc339171964767bfca2

Contents?: true

Size: 794 Bytes

Versions: 3

Compression:

Stored size: 794 Bytes

Contents

module Appium
  module Core
    module Device
      module Value
        def self.add_methods
          ::Appium::Core::Device.add_endpoint_method(:set_immediate_value) do
            def set_immediate_value(element, *value)
              keys = ::Selenium::WebDriver::Keys.encode(value)
              execute :set_immediate_value, { id: element.ref }, value: Array(keys)
            end
          end

          ::Appium::Core::Device.add_endpoint_method(:replace_value) do
            def replace_value(element, *value)
              keys = ::Selenium::WebDriver::Keys.encode(value)
              execute :replace_value, { id: element.ref }, value: Array(keys)
            end
          end
        end
      end # module Value
    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/value.rb
appium_lib_core-1.7.1 lib/appium_lib_core/device/value.rb
appium_lib_core-1.7.0 lib/appium_lib_core/device/value.rb