module Capybara::Selenium::Driver::MarionetteDriver
def reset!
def reset! # Use instance variable directly so we avoid starting the browser just to reset the session return unless @browser switch_to_window(window_handles.first) window_handles.slice(1..-1).each { |win| close_window(win) } super end