capybara icon indicating copy to clipboard operation
capybara copied to clipboard

Add browser local/session storage option

Open twalpole opened this issue 8 years ago • 2 comments

Add a setting to clear localStorage and sessionStorage on reset if Capybara is running the server for the session.

twalpole avatar Apr 01 '17 20:04 twalpole

Do you want to keep Selenium-specific option (https://github.com/teamcapybara/capybara/pull/1781) as well?

abotalov avatar Apr 01 '17 20:04 abotalov

I was thinking about deprecating them, but hadn't fully decided - The issue with those options is that they can't clear the storage in all conditions (if storage is saved in an onunload handler) so they're not perfect. I'm also trying to decide whether the new version should support specifying to clear the session or local storage - or whether it should just be both as it is now. Thoughts?

twalpole avatar Apr 03 '17 17:04 twalpole