Module: Appium::Core::Base::Device::Value

Included in:
Bridge::MJSONWP, Bridge::W3C
Defined in:
lib/appium_lib_core/common/device/value.rb

Instance Method Summary collapse

Instance Method Details

#replace_value(element, *value) ⇒ Object


25
26
27
28
# File 'lib/appium_lib_core/common/device/value.rb', line 25

def replace_value(element, *value)
  keys = ::Selenium::WebDriver::Keys.encode(value)
  execute :replace_value, { id: element.ref }, value: Array(keys)
end

#set_immediate_value(element, *value) ⇒ Object


20
21
22
23
# File 'lib/appium_lib_core/common/device/value.rb', line 20

def set_immediate_value(element, *value)
  keys = ::Selenium::WebDriver::Keys.encode(value)
  execute :set_immediate_value, { id: element.ref }, value: Array(keys)
end