Skip to content

Instantly share code, notes, and snippets.

@DylanLacey
Created January 8, 2014 03:42
Show Gist options
  • Save DylanLacey/8311425 to your computer and use it in GitHub Desktop.
Save DylanLacey/8311425 to your computer and use it in GitHub Desktop.
Debugging what's calling quit in Capybara
def quit
STDERR.puts "Capybara::Selenium::Driver.quit called by #{caller}"
@browser.quit if @browser
rescue Errno::ECONNREFUSED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment