Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to delete IE cookies in QTP.

    • 0
    • 1
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 344
    Comment on it

    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)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: