Class: TestSteps::Handlers::CheckTitle
- Defined in:
- lib/functions/handlers/check_browser_title.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 |
# File 'lib/functions/handlers/check_browser_title.rb', line 8 def perform(step_attributes) b_title = step_attributes[:testvalue] Browser.b.wait_until { Browser.b.title.eql? b_title } MyLog.log.info("Browser title: #{b_title}") true rescue StandardError MyLog.log.warn("Title not found: #{b_title}") false end |