module Capybara

def session_name

Returns:
  • (Symbol) - The name of the currently used session.
def session_name
  if threadsafe
    Thread.current['capybara_session_name'] ||= :default
  else
    @session_name ||= :default
  end
end