Micro Focus QTP (UFT) Forums
How to delete the cookies (1000 records) - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: How to delete the cookies (1000 records) (/Thread-How-to-delete-the-cookies-1000-records)



How to delete the cookies (1000 records) - akhandesh - 08-26-2014

Hi,

- I have 1000 records in Excel.
- Those records will be used for searching purpose in Salesforce.com
- When i Search for first few records(eg. 70 records) Using QTP then Browser hangs up and Does not perform further search.

- I want to search for 100 records and i want to Delete the cookies from the browser.
and I want to relaunch the browser.

Can anyone help me out with the above scenario using Script ?

Regards,
Akhandesh


RE: How to delete the cookies (1000 records) - vinod123 - 09-03-2014

Even though there are 70 records we can use single statement for cookie deletion for that particular domain
Code:
Browser("micclass:=Browser").DeleteCookies "Salesforce"