Unified Functional Testing Practitioners Forum
cancel

Retrieve Cookie information from Firefox browser

SOLVED
Go to solution
Highlighted
Lingesh
Super Collector

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.

3 REPLIES
Solution

Re: Retrieve Cookie information from Firefox browser

Does this work:

 

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

 


--
Anshoo Arora
Relevant Codes
LinkedIn
Lingesh
Super Collector

Re: Retrieve Cookie information from Firefox browser

Cool! It works for both Firefox & IE.

Thanks Anshoo.

Re: Retrieve Cookie information from Firefox browser

Glad it worked! Thanks for the Kudos. :)


--
Anshoo Arora
Relevant Codes
LinkedIn
//Add this to "OnDomLoad" event