cookie Property

A cookie is a small piece of information stored by the browser that applies to a Web page. Each cookie can store up to 20 name=value; pairs called crumbs, and the cookie is always returned as a string of all the cookies that apply to the page. This means that you must parse the string returned to find the values of individual cookies.

The following is an example which retrieves the value of the cookie for a specified Web page.

strCookie = Browser("Browser").Page("Page").Object.cookie

Note: You can also use the Browser Test Object's GetCookies method to retrieve cookies for a specific URL. For example:

msgbox Browser("Yahoo").GetCookies("")