Module: PrependCapybaraSession
- Defined in:
- lib/cyperful/framework_injections.rb
Overview
we need to override the some Capybara::Session methods because they control the top-level browser window, but we want them to control the iframe instead
Instance Method Summary collapse
Instance Method Details
#current_url ⇒ Object
12 13 14 15 16 |
# File 'lib/cyperful/framework_injections.rb', line 12 def current_url url = Cyperful.current&.internal_current_url return url if url super end |
#go_back ⇒ Object
23 24 25 26 |
# File 'lib/cyperful/framework_injections.rb', line 23 def go_back super Cyperful.current&.drive_iframe end |