Hi,
Im trying to create a script to clear the cache of IE ver.6 , by choosing Tools -> Internet Options and then clicking on Delete Files button.
Here is the code I wrote:
Run ( "C:\Program Files\Internet Explorer\IEXPLORE.EXE about:blank")
WinWaitActive("about:blank - Microsoft Internet Explorer")
ControlSend("about:blank - Microsoft Internet Explorer","","ToolbarWindow324","!to!f")
WinWaitActive("Internet Options")
ControlClick("Internet Options", "", "Button7")
WinWaitActive("Delete Files")
ControlCommand("Delete Files","", "Button1", "Check")
sleep(100)
ControlClick("Delete Files", "", "Button2")
WinWaitActive("Internet Options")
ControlClick("Internet Options", "", "Button15")
WinWaitActive("about:blank - Microsoft Internet Explorer")
WinClose("about:blank - Microsoft Internet Explorer")
The thing is that this script some times does not work, and some time other menu items are pressed.
Is there any other robust way of doing this?
Thanks,
Tal.