04-20-2010, 05:42 PM
You can use .Object.Currentstyle for any object to get the properties.
Try the code below-
Try the code below-
Code:
Dim lnkobj
SystemUtil.Run "C:\Program Files\Internet Explorer\IExplore.exe","http://www.google.co.in/"
Set lnkobj =Browser("name:=Google").Page("title:=Google").Link("name:=Hindi").Object.currentStyle
print "Link BackGround Color ="& lnkobj.backgroundColor
print "Link font size ="& lnkobj.fontsize
print "Link font family ="& lnkobj.fontfamily
print "Link font color ="& lnkobj.color
print "Link text alignment ="& lnkobj.textalign
Set lnkobj=Nothing
Browser("name:=Google").Close