We use :cookie_store
for our Rails sessions (Rails 5.1.3), see http://api.rubyonrails.org/classes/ActionDispatch/Session/CookieStore.html
Using Capybara::RackTest::Driver
in a test, I can get the current session and cookies using
page.driver.request.session
page.driver.request.cookies
But when I use Capybara::Selenium::Driver
I only have access to the cookies, not the session, e.g.
page.driver.browser.manage.all_cookies
Is there a way to access the session of the browser using Selenium?