How can I save all cookies in Ruby's Selenium WebDriver to a txt-file, then load them later? I don't find any answer which does export and import at the same time
In python looks like a very easy way to do that, how to do it in RUBY?
How to save and load cookies using Python + Selenium WebDriver:
import pickle
import selenium.webdriver
driver = selenium.webdriver.Firefox()
driver.get("http://www.google.com")
pickle.dump( driver.get_cookies() , open("cookies.pkl","wb"))
Edits: I am only using Selenium WebDriver (no capybara etc)