Module: RegressyCommon::Sender

Defined in:
lib/regressy_common/sender.rb

Instance Method Summary collapse

Instance Method Details

#jsend_keys(how, what, content) ⇒ Object



7
8
9
# 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) ⇒ Object



11
12
13
14
15
16
# 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) ⇒ Object



3
4
5
# File 'lib/regressy_common/sender.rb', line 3

def send_keys(how, what, content)
  target_element(how, what).send_keys(content)
end