Web application use cookies to store user related information . While testing web application
It is a best practice to delete cookies before starting a new test.
IE cookies can be deleted using WebUtil object which come along with QTP. We need to use DeleteCookies method as shown in the code below .
WebUtil.DeleteCookies()
Function DeleteIECookies()
Set oWebUtil = CreateObject(Mercury.GUI_WebUtil)
oWebUtil.DeleteCookies()
End function
0 Comment(s)