Unified Functional Testing Practitioners Forum
Showing results for 
Search instead for 
Do you mean 

Retrieve Cookie information from Firefox browser

SOLVED
Go to Solution
Highlighted
Advisor

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.

1 ACCEPTED SOLUTION
Valued Contributor

Re: Retrieve Cookie information from Firefox browser

[ Edited ]

Does this work:

 

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

 


--
Anshoo Arora
Relevant Codes
LinkedIn
3 REPLIES
Valued Contributor

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

Re: Retrieve Cookie information from Firefox browser

[ Edited ]

Cool! It works for both Firefox & IE.

Thanks Anshoo.

Valued Contributor

Re: Retrieve Cookie information from Firefox browser

Glad it worked! Thanks for the Kudos. :)


--
Anshoo Arora
Relevant Codes
LinkedIn