Set IE = createobject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate2 "some url"
While IE.Busy = TRUE
set k = Browser("micClass:=Browser","CreationTime:=2").Pag e("micClass:=Page").Object
a = k.styleSheets.length
i need to get all the roproperty of each stylesheet object .. How can i do it ?
Search on msdn.microsoft.com what all properties are supported by the stylesheet object and do the honors your self. And also post your findings over here to help others learn.
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
length is the only supported property of styleSheets, but you can access individual stylesheets by using
Set a = k.styleSheets(0)
at this point the object a has the following properties available:
Find out more by visiting: http://msdn2.microsoft.com/en-us/lib...71(VS.85).aspx
I was only interested in href, so it's the only one I've looked at, but it worked so I assume the others will as well.
A good rule of thumb is to never measure with your thumb.