Deleting Browser History and Cache

Ask general questions here.
Shahnaz
Posts: 7
Joined: Thu Aug 27, 2015 2:25 pm

Deleting Browser History and Cache

Post by Shahnaz » Wed Sep 09, 2015 8:58 am

Hi
I need to Delete my browser History(Chrome/IE) after every Test case execution. Can anyone provide any help regarding its script.. I saw code in site for creating Shell object and then clear stack trace but not sure how to declare such objects in Ranorex

lucian.teodorescu
Posts: 82
Joined: Fri Oct 24, 2014 10:58 am
Location: Bucharest

Re: Deleting Browser History and Cache

Post by lucian.teodorescu » Wed Sep 09, 2015 10:35 am

Hi Shahnaz,

I don't know exactly what are you trying to do, but here are 2 options to consider:
[*] open browser with 'clear cache = True' - so you have a fresh start every time. (right click on 'Open Browser' action>Properties and set property Clear Cache as True)
[*] open browser in incognito mode - in this way your session's browsing history and cache will be deleted when closing the window. (right click on 'Open Browser' action >Properties and set property Incognito mode as True)

If this is not enough, maybe it's a good time to provide more details about your test case steps.

Kind regards,
Lucian Teodorescu
NetSun Software