Re: Retrieve Cookie information from Firefox browser (245 Views)
Reply
Advisor
Lingesh
Posts: 36
Registered: ‎01-02-2009
Message 1 of 4 (278 Views)
Accepted Solution

Retrieve Cookie information from Firefox browser

Hi,

The below mentioned ways to retrieve the cookie information works fine in Internet Explorer 8.0 and fails in the case of Firefox (FF 8.0).

 

Browser("Browser").Page("Page").Object.Cookie

 

Browser("Browser").GetCookies("<your url>")

 

WebUtil.GetCookies("<your url>")

 

 Is there a working snippet for firefox?

 

Thanks.

Valued Contributor
Anshoo_Arora
Posts: 82
Registered: ‎07-06-2011
Message 2 of 4 (265 Views)

Re: Retrieve Cookie information from Firefox browser

[ Edited ]

Does this work:

 

cookie = Browser("Browser").Page("Page").RunScript("document.cookie;")

 


--
Anshoo Arora
Relevant Codes
LinkedIn
Advisor
Lingesh
Posts: 36
Registered: ‎01-02-2009
Message 3 of 4 (262 Views)

Re: Retrieve Cookie information from Firefox browser

[ Edited ]

Cool! It works for both Firefox & IE.

Thanks Anshoo.

Valued Contributor
Anshoo_Arora
Posts: 82
Registered: ‎07-06-2011
Message 4 of 4 (245 Views)

Re: Retrieve Cookie information from Firefox browser

Glad it worked! Thanks for the Kudos. :)


--
Anshoo Arora
Relevant Codes
LinkedIn
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.