How you will do cookie testing using QTP?

Showing Answers 1 - 3 of 3 Answers

md_vinodh

  • Jun 12th, 2008
 

I Assume that, u want to  test the  cookies  in your  Browser, please  use this  code  and compare  the  cookies

Step1: Get the cookies from Current Browser ( Use this code )
 
Dim Sample
Sample = Browser("name:=Google").Page("title:=Google").Object.cookie
msgbox Sample

Step2: Then Compare ur cookies with this output, then u can get the results

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions