19-05-23 05:46 AM
19-05-23 07:43 AM
Hello @JagadishPatro,
Just looking at your post about clearing the caches in Chrome. Did you have a specific ask about the code you posted?
Are you having some problems or an issue with it?
Or maybe, this was in response to another post and it was posted accidentally?
Please let me know.
Thanks.
19-05-23 03:02 PM
i have responded to a old post as new thread .I am facing challenging in the process where need to clear chrome cache regularly.
Do you any blueprism VBO or code to clear cache and clear cookies also.
19-05-23 04:20 PM
HI Jagadish Patro,
Not sure whether you have tried the different approaches
Clearing the browser cache:
1) Navigate to the folder in program data and delete the respective folder if the logged in user is default user
Also you can create a bat file and run the bot file through bot to delete the cache:
Bat file name: "ChromeClearCache.bat"
"@echo off
set ChromeDir=C:\Users\%USERNAME%\appdata\Local\Google\Chrome\User Data\Default\Cache
del /q /s /f "%ChromeDir%"
rd /s /q "%ChromeDir%""
C# Code:
"public static void ClearChromeCache()
{
Process proc = null;
try
{
proc = new Process();
proc.StartInfo.FileName = "ChromeClearCache.bat";
proc.StartInfo.CreateNoWindow = false;
proc.Start();
proc.WaitForExit();
}
catch (Exception ex)
{
Console.WriteLine("Exception Occurred :{0},{1}", ex.Message, ex.StackTrace.ToString());
}
}"
Please test it on the machine you are intended to clear the cache. I have not used this code Instead I did by navigating the screens to clear it.
2) Spy the navigating after launching the chrome and navigate to the page to clear the cache - I did for Edge
3) Write C# or Vb.net code