acceptance/ui/features/support/selenium.rb
# The selenium driver doesn't unload itself, it just clears the cookies to "reset"
# the session.  If we override this method, we can prevent that and use the same login
# for all tests.
# ref: https://github.com/jnicklas/capybara/blob/master/lib/capybara/selenium/driver.rb#L93
The selenium driver doesn't unload itself, it just clears the cookies to "reset"
the session.  If we override this method, we can prevent that and use the same login
for all tests.
The selenium driver doesn ' t unload itself it just clears the cookies to " reset " the session . If we override this method we can prevent that and use the same login for all tests .
def reset!
        if @browser
            navigated = false
            if !navigated
                @browser.navigate.to("about:blank")
                navigated = true
            end
        end
    end
def reset! if @browser navigated = false if ! navigated @browser . navigate . to ( "about:blank" ) navigated = true end end end
The selenium driver doesn't unload itself, it just clears the cookies to "reset"
the session.
The selenium driver doesn ' t unload itself it just clears the cookies to " reset " the session .
# Use instance variable directly so we avoid starting the browser just to navigate to about:blank # Don't reset.. but do navigate to a blank page.