Module: StillLife::CapybaraExtension::ElementExtension
- Defined in:
- lib/still_life/capybara_extension.rb
Instance Method Summary collapse
Instance Method Details
#click ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/still_life/capybara_extension.rb', line 6 def click(*) return super if Thread.current[:_still_life_inside_modal] body_was = session.body super.tap do session.find('body') if session.body.present? && (session.body != body_was) StillLife.draw(session.body) end end end |