Page 1 of 1

Deleting Browser History and Cache

Posted: Wed Sep 09, 2015 8:58 am
by Shahnaz
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

Re: Deleting Browser History and Cache

Posted: Wed Sep 09, 2015 10:35 am
by lucian.teodorescu
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,