Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add browser local/session storage option #1853

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

twalpole
Copy link
Member

@twalpole twalpole commented Apr 1, 2017

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

@twalpole twalpole force-pushed the browser_storage_clearing branch 2 times, most recently from a292e29 to 9bf791f Compare April 1, 2017 20:20
@abotalov
Copy link
Collaborator

abotalov commented Apr 1, 2017

Do you want to keep Selenium-specific option (#1781) as well?

@twalpole
Copy link
Member Author

twalpole commented Apr 3, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants