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 local storage handling to Geb #472

Closed
kriegaex opened this Issue Feb 20, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@kriegaex

kriegaex commented Feb 20, 2017

@erdi wrote in a comment under http://stackoverflow.com/q/36527441/1082681:

There is no code in Geb that deals with clearing local storage but apparently in latest versions in WebDriver there is a WebStorage interface which provides ability to interact with local storage. Feel free to submit issues against Geb to: expose clearing local storage functionality via a method on browser and clear local storage together with clearing cookies as part of the test lifecycle.

Because the OP did not care to create a ticket and I think it makes sense anyway, I am taking care of it so as not to let it become forgotten.

  • Clearing local storage automatically or optionally before the browser/driver is closed is one thing.
  • Adding a method to clear it during runtime is another.
  • Even better would be other ways of iteracting with local storage, such as reading from or writing into it.
@ChrisCooney

This comment has been minimized.

ChrisCooney commented Jul 1, 2017

Just bumping this. We tend to avoid using cookies and getting easy access to local storage without running on client Javascript would be lovely! 👍

erdi added a commit to geb/geb that referenced this issue Aug 2, 2018

@erdi erdi added this to the 2.2 milestone Aug 2, 2018

@erdi erdi self-assigned this Aug 2, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment