Saturday, February 20, 2010

Getting Cookie ID

This code gets the cookie id of current page without using WebUtil in QTP.

theCookie= Browser("micClass:=Browser").Page("micClass:=Page").Object.Cookie
pos=InStr(1,theCookie,"/",1)
cookieID= mid(theCookie, pos + 1, 16)

No comments:

Computers Add to Technorati Favorites Programming Blogs - BlogCatalog Blog Directory