Class: TestSteps::Handlers::CaptureAlert
- Defined in:
- lib/functions/handlers/capture_alert.rb
Overview
Capture Alert 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
#perform ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/functions/handlers/capture_alert.rb', line 11 def perform Browser.b.div(class: 'alert').exist? alertmsg = Browser.b.div(class: 'alert').text MyLog.log.info("Alert shown: #{alertmsg}") true rescue StandardError MyLog.log.warn('No Alert Found') false end |