Class: TestSteps::Handlers::SendSpecialKeys

Inherits:
Base
  • Object
show all
Defined in:
lib/functions/handlers/send_special_keys.rb

Instance Method Summary collapse

Methods inherited from Base

#login_button, #login_check, #login_process, #mem_word_check, #open_url_process, perform, #portal_mem_word, register

Instance Method Details

#perform(step_attributes) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/functions/handlers/send_special_keys.rb', line 8

def perform(step_attributes)
  special_key = step_attributes[:testvalue]

  Browser.b.send_keys :"#{special_key}"
  sleep 1
  MyLog.log.info("Browser Sent key: :#{special_key} successfully")
  true
rescue StandardError
  MyLog.log.warn("Browser Failed to Send key: :#{special_key}")
  false
end