Class: TestSteps::Handlers::SwitchIframe
- Defined in:
- lib/functions/handlers/switch_iframe.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 20 |
# File 'lib/functions/handlers/switch_iframe.rb', line 8 def perform(step_attributes) frame = step_attributes[:testvalue] locate = step_attributes[:locate] Browser.b.iframe(:"#{locate}" => frame).exists? # Browser.b.wait_until { iframe(:"#{locate}" => frame).exists? } # Browser.b.switch_to(:"#{locate}" => iframe) MyLog.log.info("iframe found: #{frame} is correct") true rescue StandardError MyLog.log.warn("iframe not found: #{frame}") false end |