Method: Capybara::Session#quit

Defined in:
lib/capybara/session.rb

#quitObject

Disconnect from the current driver. A new driver will be instantiated on the next interaction.



147
148
149
150
151
152
# File 'lib/capybara/session.rb', line 147

def quit
  @driver.quit if @driver.respond_to? :quit
  @document = @driver = nil
  @touched = false
  @server&.reset_error!
end