开发者

Delete Flash Cookies via Code

Using C# (or VB if needed), I am setting up a simple automated browser program. Right now I am doing this via watin. I am doing this on my Windows 7 Desktop and the browser I am automating via Wati开发者_运维技巧n is IE. Ideally I would like to keep it as is, in C# using watin, but I am flexible.

Each time I run the program I would like to delete the cookies, which with watin is simple to execute. The problem I have is deleting the flash cookies.

I know to manually delete the cookies you can do it here, but I'd like to figure out a way to do it via programming FLASH COOKIES SETTINGS

Also, here is a Great paper on Flash Cookies and Privacy

Please let me know if I left anything out, or what I can do to make this question as clear as possible.


Take a look at this blog post for a simple batch file that does this: http://www.ardamis.com/2010/07/07/how-to-delete-flash-cookies/ . This can easily be converted to C# or (you can shell out to the batch file) and executed from your test suite init.


Use SOLReader to delete the relevant LSO data.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜