Class: TestSteps::Handlers::HandleBrowserWindow
- Defined in:
- lib/functions/handlers/handle_browser_window.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 18 19 |
# File 'lib/functions/handlers/handle_browser_window.rb', line 8 def perform(step_attributes) text_check = step_attributes[:testvalue] Browser.b.window(title: text_check.to_s).use sleep 3 Browser.b.title.eql?(text_check.to_s) MyLog.log.info("Window title: #{text_check} is correct") true rescue StandardError MyLog.log.warn("Window not found: #{text_check}") false end |