Class: Taf::TestSteps::Handlers::CaptureAlert
- Defined in:
- lib/taf/test_steps/handlers/base/capture_alert.rb
Overview
Capture Alert function.
Instance Method Summary collapse
Methods inherited from Base
#initialize, #login_check, #login_process, perform, #portal_mem_word, 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/capture_alert.rb', line 10 def perform Taf::Browser.b.div(class: 'alert').exist? alertmsg = Taf::Browser.b.div(class: 'alert').text Taf::MyLog.log.info("Alert shown: #{alertmsg}") true rescue StandardError Taf::MyLog.log.warn('No Alert Found') false end |