I am testing on a web based application.The problem is attimes when I enter the url of the application in the browser , the login window comes and the other times the home page of the application comes .so if while recording the login window had come , and if it is not there at the time of running then my scritp will fail.
So as a resolution I thought of clearing the cache and cookies .
Is there any inbuilt function which can clear the cache and cookies ior what alternate I can use for the problem described .
The only problem with using the path for cookies is that it changes for each user "Documents and Settings\userID\Cookies"
Why not use the NameSpace representation for the cookies folder which is &H21& this way the script will not fail when someone else tries to run it.
Here is some code that shows how it works:
Set ObjShell = CreateObject("Shell.Application")
Set ObjFolder = objShell.NameSpace(&H21&)
set cookieList = objFolder.items
For Each objTool in cookieList