Cookies 使用VBScript清除缓存和cookie

Cookies 使用VBScript清除缓存和cookie,cookies,vbscript,hp-uft,Cookies,Vbscript,Hp Uft,下面是我想用来清除浏览器历史记录和缓存的代码。效率高吗 'Clear Browser Cache webutil.DeleteCookies intWaited = 0 WshShell.Run "Rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 255", 1, True 'Delete All While Dialog("title:=Delete Browsing History").Exist(1) And intWaited <

下面是我想用来清除浏览器历史记录和缓存的代码。效率高吗

'Clear Browser Cache
webutil.DeleteCookies
intWaited = 0
WshShell.Run "Rundll32.exe InetCpl.cpl, ClearMyTracksByProcess 255", 1, True  'Delete All
While Dialog("title:=Delete Browsing History").Exist(1) And intWaited < 10
    wait(1)
    intWaited = intWaited + 1
Wend
intWaited = 0
SystemUtil.Run "RunDll32.exe", "InetCpl.cpl,ClearMyTracksByProcess 4351"
While Dialog("title:=Delete Browsing History").Exist(1) And intWaited < 10
    wait(1)
    intWaited = intWaited + 1
Wend
“清除浏览器缓存”
webutil.DeleteCookies
整数=0
WshShell.Run“Rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 255”,1,True“全部删除”
While对话框(“title:=删除浏览历史”).Exist(1)和intWaited<10
等待(1)
intWaited=intWaited+1
温德
整数=0
SystemUtil.Run“RunDll32.exe”、“InetCpl.cpl、ClearMyTracksByProcess 4351”
While对话框(“title:=删除浏览历史”).Exist(1)和intWaited<10
等待(1)
intWaited=intWaited+1
温德

查看和方法。

请发布完整的代码,包括函数声明和变量初始化。代码看起来不像普通的VBScript。这是UFT吗?另外,关于改进工作代码的问题最好在上提问。@AnsgarWiechers是的-那将是UFT。赠品是
SystemUtil.Run
call