README.md in capybara-sessionkeeper-0.1.5 vs README.md in capybara-sessionkeeper-0.1.6

- old
+ new

@@ -81,9 +81,23 @@ ``` session.restore_cookies(File.join(Capybara.save_path, 'user1.cookies.txt')) ``` +### Save and restore cookies from YAML + +Save cookie to yaml string (serialization to yaml). + +``` +yaml_str = session.cookies_to_yaml +``` + +Restore cookie from yaml string (deserialization from yaml). + +``` +session.restore_cookies_from_data(yaml_str, format: 'yaml') +``` + ### Read cookies of current session ``` session.driver.browser.manage.all_cookies ```