I initially open a browser window using:
$driver = Selenium::WebDriver.for :firefox, :profile => profile
and then run code to log in to the site.
I then close the window using
$driver.quit
I would like to reopen the browser to run tests against the site without having to log in again. I would like to know if there's a way to open the browser retaining my cookie that I am logged in.
Right now if I do another $driver = Selenium::WebDriver.for :firefox, :profile => profile, it shows me as not logged in.