Class: TestSteps::Handlers::SendSpecialKeys

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

Overview

Send a Special Key function.

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

This class inherits a constructor from TestSteps::Handlers::Base

Instance Method Details

#performObject



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

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