Class: Taf::TestSteps::Handlers::LeaveIframe
- Defined in:
- lib/taf/test_steps/handlers/base/leave_iframe.rb
Overview
Handle leave iframe 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/leave_iframe.rb', line 10 def perform # Return to the top level Taf::Browser.b.switch_to.default_content Taf::MyLog.log.info('iframe switched to top level successfully') true rescue StandardError Taf::MyLog.log.warn('iframe failed to switched to top level') false end |