ClearBrowserCache Method - any way to set a longer timeout?
ClearBrowserCache Method - any way to set a longer timeout?
I'm having an issue with my VM's randomly, wondering if anyone knows if its possible to somehow get more than 5 seconds to allow the browser to clear its cache when using the ClearBrowserCache Method (browserName, userProfile)
Re: ClearBrowserCache Method - any way to set a longer timeout?
Hi,
As far as I know, there is no "delay" parameter in ClearBrowserCache so all you can probably do is to add a Ranorex.Delay right after the ClearBrowserCache method? But maybe I misunderstand your problem?
As far as I know, there is no "delay" parameter in ClearBrowserCache so all you can probably do is to add a Ranorex.Delay right after the ClearBrowserCache method? But maybe I misunderstand your problem?

Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: ClearBrowserCache Method - any way to set a longer timeout?
The method is throwing an error. From what I can tell there is probably a 5 second internal timout.
I know my VM's sometimes can get a bit slow for brief periods but for now I'll just have to catch and check the error and handle it myself.
The VM's are configured as Win7 using IE11, 2 cpu, 4gb ram.
I know my VM's sometimes can get a bit slow for brief periods but for now I'll just have to catch and check the error and handle it myself.
The VM's are configured as Win7 using IE11, 2 cpu, 4gb ram.
Re: ClearBrowserCache Method - any way to set a longer timeout?
Hi,
I see. Well, as mentioned, there is currently no custom tiemout parameter in this method. Have you, by any chance, tried to use OpenBrowser action, with Clear Cache parameter? Does it behave the same?
I see. Well, as mentioned, there is currently no custom tiemout parameter in this method. Have you, by any chance, tried to use OpenBrowser action, with Clear Cache parameter? Does it behave the same?
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: ClearBrowserCache Method - any way to set a longer timeout?
Ha - that's the funny thing. I tried, but I cant and here's why: in this particular area we have encoded JWT tokens and append them on the tail of the URL to bypass some login stuff that takes too long and isn't a part of this specific area of testing - and the encoded token puts the URL length over the "limit" of what Ranorex can handle, so that was choking as well.
So close, but yet so far...
For now I just catch the error and drop in a warning to the report.
So close, but yet so far...
For now I just catch the error and drop in a warning to the report.
Re: ClearBrowserCache Method - any way to set a longer timeout?
If I use the OpenBrowser action with ClearCache parameter, the cache is not deleted afterwards.
Is the cache "cleared" only for the active session?
Is the cache "cleared" only for the active session?
Re: ClearBrowserCache Method - any way to set a longer timeout?
Hi,
ClearCache simply deletes its cache during browser start. Cache is not deleted during test run or after closing browser.
ClearCache simply deletes its cache during browser start. Cache is not deleted during test run or after closing browser.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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