Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Delete Cookies...
#1
Solved: 10 Years, 9 Months ago
Hi,
Can anybody help me how to delete browsing history  before we start our application for test??

I have tried with
Code:
WebUtil.DeleteCookies
but it is not working so i want a script which would delete all cookies

Thanks

Moderator Note: Here are different ways using which you can delete cookies in various browsers.
Reply
#2
Solved: 10 Years, 9 Months ago
Code:
SystemUtil.Run "iexplore",,,,0

  WebUtil.DeleteCookies

  SystemUtil.CloseDescendentProcesses
Reply
#3
Solved: 10 Years, 9 Months ago
Hi,

You can use the below codes which will delete all cookies, caches and temporary internet files in IE browser:

Code:
Function ClearCookies()
SystemUtil.Run "Control.exe","inetcpl.cpl"
Set objShell = CreateObject("Wscript.Shell")
Do Until Success = True
Success = objShell.AppActivate("Internet Properties")
Wait(1)
Loop
objShell.Sendkeys "%i"
Wait(1)
objShell.Sendkeys "{ENTER}"
Wait(1)
objShell.Sendkeys "%f"
Wait(1)
objShell.Sendkeys "%d"
Wait(1)
objShell.Sendkeys "{ENTER}"
Wait(4)
objShell.Sendkeys "{ENTER}"
End Function
Call ClearCookies()
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
  How to check expected cookies are present or not priyanka.agarwal 0 1,871 07-02-2015, 12:43 PM
Last Post: priyanka.agarwal
  How to delete particular mails in Gmail using QTP rajkumarsm 1 3,860 10-06-2014, 07:03 PM
Last Post: rajkumarsm
  How to delete the cookies (1000 records) akhandesh 1 2,500 09-03-2014, 09:57 AM
Last Post: vinod123
  Delete Gmail email newqtp 4 4,549 07-05-2013, 02:12 PM
Last Post: Staff

Forum Jump:


Users browsing this thread: 1 Guest(s)