如何对COOKIE进行操作
如何对COOKIE进行操作? 如清空COOKIE 先考虑手工操作如何实现,然后考虑如何用QTP去实现 知道COOKIE的位置就可以了Set fso = CreateObject("scrīpting.FilesystemObject")
set wshNetwork = CreateObject("Wscript.Network")
struser = wshNetwork.UserName
fso.DeleteFile "C:\DOCUMENTS AND SETTINGS\" & struser & "\COOKIES\*.*",Force
fso.DeleteFile "C:\DOCUMENTS AND SETTINGS\" & struser & "\LOCAL SETTINGS\TEMP\*.*",Force
fso.DeleteFile "C:\DOCUMENTS AND SETTINGS\" & struser & "\LOCAL SETTINGS\TEMPORARY INTERNET FILE\*.*",Force
fso.DeleteFile "C:\WINNT\TEMP\*.*",Force
set fso=nothing
set wshNetwork=nothing :L 楼上的做法太残忍了,不提倡....:lol
gettoproperty里面就有一个cookie的属性 ;P :lol :)
页:
[1]