Forum Discussion
Might help to say which browser .... ;)
Internet Explorer
Firefox
Chrome
- AlexKaras8 years agoChampion Level 3
Hi,
While been in line with Robert...
Have you read this: https://community.smartbear.com/t5/TestComplete-Functional-Web/How-to-ClearCache-and-Cookies-from-Internet-Explorer-9/td-p/89841 ?
- tristaanogre8 years agoEsteemed Contributor
Just an FYI, access to browser cache via script code is something that many browsers DON'T allow for security reasons (do you want malicious script code on a web page to be able to access the cache and cookies that may contain personal information?). A quick Google search found a few sections of code that might do it, but, generally speaking, they come with the above caveat as well as a general statement indicating that, as browser security tightens, such code may no longer work.
Question: What is your purpose for clearing the cookies and cache via script code? There may be other ways of achieving your desired functionality without resorting to that process.- nisgupta8 years agoValued Contributor
Thank you very much for the Updates
Most of our applications are web based. Some are implemented using Angular JS and some are implemented using Groovy.
Whenever the new version of the apps come out then most of the time browser do not completely pick up the new changes in web apps. We have to clear the browser cache and history then new apps work correctly in the browser.
Now we are planning to automate those apps using TestComplete using -JavaScript .
Due to the above issue if we don't clean the browser cache then the script will fail or will not work correctly.
Thanks
NG
- tristaanogre8 years agoEsteemed Contributor
Actually, that sounds like a design flaw... if a script has changed on a web page since the last time a user accessed the web page, the user should get an updated copy without needing to clear the cache. I mean, if I went to Amazon and it was depending upon what I had stored locally in my cache with regards to their script code, then I probably would experience all sorts of errors.
Related Content
Recent Discussions
- 8 hours agodhundley