Forum Discussion
danalu
7 years agoContributor
many thanks,
how to clear Java cache in each run? can you give a code sample?
shankar_r
7 years agoCommunity Hero
Here you go,
function JavaWSClearCache()
{
try
{
Sys.OleObject("WScript.Shell").Exec("cmd /c javaws -clearcache");
Log.Message("Java Cache cleared");
}
catch(ex)
{
Log.Error(ex.stack);
}
}- danalu7 years agoContributor
Thank you!
Did you mean call clear cache before test case? seem i have no luck with it. Still same waiting message.
- shankar_r7 years agoCommunity Hero
Another possible reason could be, if you are checking the object existence before that rendered then it will start to prepare an object recognition hint
- danalu7 years agoContributor
Hello,
from the code above, i just replay the script i recorded, not checking its existence.