Class: Taf::TestSteps::Handlers::SwitchToIframe
- Defined in:
- lib/taf/test_steps/handlers/base/switch_to_iframe.rb
Overview
Handle switch to 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 |
# File 'lib/taf/test_steps/handlers/base/switch_to_iframe.rb', line 10 def perform Taf::Browser.b.switch_to.frame @value.to_s Taf::MyLog.log.info("Switched to iframe: #{@value} successfully") true rescue StandardError Taf::MyLog.log.warn("Failed to switch to iframe: #{@value}") false end |