TanIlak
3 years agoContributor
Clear browser history
Hi, How to clear browser history cache and all for all the browsers?? Is there any inbuilt methods are there in TC?? Let me know Thanks and regards TanIlak
Hi !
Personnally, I use this function to clear my browser (ms edge in my case) :
function clearBrowserCache(){
var path, pathCookies, pathCookiesJournal;
path = "%LocalAppData%\\MICROS~1\\Edge\\USERDA~1\\Default\\Cache\\CACHE_~1\\";
pathCookies = "%LocalAppData%\\MICROS~1\\Edge\\USERDA~1\\Default\\Network\\Cookies";
pathCookiesJournal = "%LocalAppData%\\MICROS~1\\Edge\\USERDA~1\\Default\\Network\\Cookies-journal";
try {
aqFileSystem.DeleteFile(path+"*.*");
aqFileSystem.DeleteFile(pathCookies);
aqFileSystem.DeleteFile(pathCookiesJournal);
} catch (e) {
Log.Warning(e);
}
}