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

I have such an interesting issue with my web application.
my application required deleting cookies after each and every action iteration.
i was afraid that how it could be possible?
could you please help me how it's possible ?
its an urgent.

Thanks
Chetan
Reply
#2
Solved: 11 Years, 4 Months 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
#3
Solved: 11 Years, 4 Months ago
Thanks manoj let me check this code.
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)