12-07-2012, 08:40 PM
Your approach is right.
Instead of using abc = objlink, you should have used
abc = objlink.count()
and in place of msgbox = n.count, you should use msgbox = n
below is the modified version of your code.
--
--
hope this helps.
Thanks,
Elango
Instead of using abc = objlink, you should have used
abc = objlink.count()
and in place of msgbox = n.count, you should use msgbox = n
below is the modified version of your code.
--
Code:
SystemUtil.Run "iexplore.exe", "google.com"
n=abc()
msgbox n
Public function abc()
Set linkdesc=description.Create
linkdesc("micclass").value="Image"
Set objlink = Browser("Google").Page("Google").ChildObjects(linkdesc)
abc = objlink.Count()
End Function
hope this helps.
Thanks,
Elango