Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Delete cookies while running the test. script
#1
Solved: 10 Years, 9 Months, 1 Week 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: 10 Years, 9 Months, 1 Week 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: 10 Years, 9 Months, 1 Week 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,324 06-18-2018, 11:57 AM
Last Post: Anupama
  issue with IE when running test eiko 2 1,433 02-01-2018, 04:46 PM
Last Post: eiko
  UFT Script running twice SacJoshi 0 2,073 11-11-2016, 01:51 PM
Last Post: SacJoshi
  How to check expected cookies are present or not priyanka.agarwal 0 1,871 07-02-2015, 12:43 PM
Last Post: priyanka.agarwal
  Calling a function in a Test Script from a function library anupam4j 3 5,905 06-26-2015, 12:31 AM
Last Post: babu123

Forum Jump:


Users browsing this thread: 1 Guest(s)