class Capybara::Selenium::Driver
Monkey patch the Capybara
Driver
class to ensure that we can call `quit` at the end of a parallel process run and not generate errors if capybara then attempts to quit.
We need to do this so that sessions are terminated as early as possible at the remote end.
Public Instance Methods
quit()
click to toggle source
# File lib/simulacrum/browserstack/capybara_patch.rb, line 12 def quit @browser.quit if @browser rescue Errno::ECONNREFUSED, ::Selenium::WebDriver::Error::UnknownError # Browser must have already gone ensure @browser = nil end