Method: Capybara.reset_sessions!

Defined in:
lib/capybara.rb

.reset_sessions!Object Also known as: reset!

Reset sessions, cleaning out the pool of sessions. This will remove any session information such as cookies.



325
326
327
328
# File 'lib/capybara.rb', line 325

def reset_sessions!
  # reset in reverse so sessions that started servers are reset last
  session_pool.reverse_each { |_mode, session| session.reset! }
end