I'm writing a script which needs the browser that selenium is operating close and re-open, without losing its cookies.
Any idea on how to go about it?
Basically, it's a check to see that if the user opens and closes his browser, his cookies stay intact.
You should be able to use the stop and start commands. You will need to ensure that you are not clearing cookies between sessions, and depending on the browser you're launching you may also need to use the -browserSessionReuse command line option.
Close and open a new browser in Selenium