I'm launching a specific FF Profile via Selenium and I'm trying to preserve cookies from one session to the next (i.e, cookies should be preserved even after calling driver.quit())
I'm aware, WebDriver normally generates a temporary folder mimicking the original profile so when the WebDriver instance is terminated any cookies associated with the current (temp) instance is deleted. However, in my program I copied cookies.sqlite from the temporary folder to the original folder (overwriting the cookies original file). I was expecting FF to launch next time with the new cookies from previous session but it turns out that, for some odd reason, the cookies are still not present.
I checked all around and it seems cookies are in fact stored in cookies.sqlite.
If so why isn't Firefox / WebDriver recognizing the cookies that I copied from the previous (temp) session? Are there any other files I need to copy as well?
I'm using Java.
Thanks