module RegressyCommon::Sender

Public Instance Methods

jsend_keys(how, what, content) click to toggle source
# File lib/regressy_common/sender.rb, line 7
def jsend_keys(how, what, content)
  @driver.execute_script("arguments[0].value = arguments[1];", target_element(how, what), content)
end
jsend_keys_with_keyinput(how, what, content) click to toggle source
# File lib/regressy_common/sender.rb, line 11
def jsend_keys_with_keyinput (how, what, content)
  @driver.execute_script("arguments[0].value = arguments[1];", target_element(how, what), content)
  # for application listen to key_up/down
  target_element(how, what).send_keys(" ")
  target_element(how, what).send_keys(:backspace)
end
send_keys(how, what, content) click to toggle source
# File lib/regressy_common/sender.rb, line 3
def send_keys(how, what, content)
  target_element(how, what).send_keys(content)
end

Private Instance Methods

target_element(how, what) click to toggle source
# File lib/regressy_common/sender.rb, line 20
def target_element(how, what)
  @driver.find_element(how, what)
end