lingxin5013 发表于 2008-7-31 09:54:08

如何对COOKIE进行操作

如何对COOKIE进行操作? 如清空COOKIE

walker1020 发表于 2008-7-31 09:57:28

先考虑手工操作如何实现,然后考虑如何用QTP去实现

zte_boy 发表于 2008-7-31 10:08:01

知道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

假装不在 发表于 2008-7-31 10:23:11

:L 楼上的做法太残忍了,不提倡....:lol
gettoproperty里面就有一个cookie的属性

★斌斌※测试☆ 发表于 2008-7-31 22:59:13

;P

★斌斌※测试☆ 发表于 2008-7-31 22:59:26

:lol

daren_liu 发表于 2008-8-25 17:00:42

:)
页: [1]
查看完整版本: 如何对COOKIE进行操作