Clear LocalStorage

Best practices, code snippets for common functionality, examples, and guidelines.
prepelra
Posts: 6
Joined: Tue Apr 02, 2019 9:33 am

Clear LocalStorage

Post by prepelra » Tue Apr 02, 2019 4:13 pm

Hello guys,

Does anyone know how to delete localStorage from Ranorex, before the Browser is opened?

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 4549
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Clear LocalStorage

Post by odklizec » Wed Apr 03, 2019 7:22 am

Hi,

By default, Ranorex Open Browser action supports clear cache and clear cookies arguments. If you want something else, which I suspect you do, then no, there is no special support for clearing LocalStorage. You will most probably have to write a piece of C# code to do that, before using Open Browser action.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration