I feel confident someone has written a function for this already (You could actually write a script function to do this through the browser) but at present I use a system call to the command interpretor and pass a delete "all" to the directory.
on some systems, like NT, you may have to send a keystroke to the DOS window indicating "Yes" to confirm the delete as I think they removed the -y (force the delete) switch after Win 95 ...
This is definitely a "kludge" workaround, I would check the Mercury site and look into the download section for the CSO libraries and user contributed functions for something more permenant (or write your own function).
Hope this at least points you in the right direction.
Quality Assurance - TDEC
Majestic Integration Systems
"WinRunner Developer - A red-eyed, mumbling mammal capable of conversing with inanimate objects."
You may have seen my other post and is similar in nature to this post.
Therefore, I respectfully disagree with your solution. If the goal is to delete ONLY cookies, then the method mentioned will also delete the cached files. This may or may not be what you want. In my case, I need the files, but must delete the cookies. Have you another suggestion as to how one might delete cookies?
Does anyone have a clue why WinRunner, which is testing via a browser and marketed as a tool for such work, does not have a method to do such a (seemingly) simple thing.