Retrieve Cookie information from Firefox browser (309 Views)
Reply
Advisor
Posts: 36
Registered: ‎01-02-2009
Message 1 of 4 (309 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
Posts: 82
Registered: ‎07-06-2011
Message 2 of 4 (296 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
Posts: 36
Registered: ‎01-02-2009
Message 3 of 4 (293 Views)

Re: Retrieve Cookie information from Firefox browser

[ Edited ]

Cool! It works for both Firefox & IE.

Thanks Anshoo.

Valued Contributor
Posts: 82
Registered: ‎07-06-2011
Message 4 of 4 (276 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.