Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Delete cookies while running the test. script
#2
Solved: 11 Years, 6 Months, 3 Weeks ago
include the below code


Code:
Const COOKIES = &H21&

Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.Namespace(COOKIES)
Set objFolderItem = objFolder.Self
strPath = objFolderItem.Path & "\*.*"
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile(strPath)
Reply


Messages In This Thread
RE: How to Delete cookies while running the test. script - by manojmathew1984 - 11-27-2008, 11:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Delete Firefox history and Cookies Anupama 0 1,524 06-18-2018, 11:57 AM
Last Post: Anupama
  issue with IE when running test eiko 2 1,676 02-01-2018, 04:46 PM
Last Post: eiko
  UFT Script running twice SacJoshi 0 2,303 11-11-2016, 01:51 PM
Last Post: SacJoshi
  How to check expected cookies are present or not priyanka.agarwal 0 2,079 07-02-2015, 12:43 PM
Last Post: priyanka.agarwal
  Calling a function in a Test Script from a function library anupam4j 3 6,304 06-26-2015, 12:31 AM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)