Class: Taf::TestSteps::Handlers::SendSpecialKeys
- Defined in:
- lib/taf/test_steps/handlers/base/send_special_keys.rb
Overview
Send a Special Key function.
Instance Method Summary collapse
Methods inherited from Base
#initialize, #login_check, #login_process, perform, register, #url_check
Constructor Details
This class inherits a constructor from Taf::TestSteps::Handlers::Base
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/taf/test_steps/handlers/base/send_special_keys.rb', line 10 def perform Taf::Browser.b.action.send_keys(:"#{@value}").perform sleep 1 Taf::MyLog.log.info("Browser Sent key: :#{@value} successfully") true rescue StandardError Taf::MyLog.log.warn("Browser Failed to Send key: :#{@value}") false end |