Module: PrependCapybaraSession
- Defined in:
- lib/cyperful.rb
Instance Method Summary collapse
- #current_url ⇒ Object
- #refresh ⇒ Object
-
#visit(url) ⇒ Object
we need to override the following methods because they control the top-level browser window, but we want them to control the iframe instead.
Instance Method Details
#current_url ⇒ Object
435 436 437 438 439 |
# File 'lib/cyperful.rb', line 435 def current_url url = Cyperful.current&.internal_current_url return url if url super end |
#refresh ⇒ Object
441 442 443 444 |
# File 'lib/cyperful.rb', line 441 def refresh return if Cyperful.current&.internal_visit(current_url) super end |
#visit(url) ⇒ Object
we need to override the following methods because they control the top-level browser window, but we want them to control the iframe instead
430 431 432 433 |
# File 'lib/cyperful.rb', line 430 def visit(url) return if Cyperful.current&.internal_visit(url) super end |