I had used this code for finding the nos of web elemnts.By making some changes ,I think u will be able to do with this code
Set oDesc = Description.Create()
oDesc("micclass").Value = "WebElement"
Set ObjWebElement = Browser("BrowserTitle").Page("PageName").ChildObje cts(oDesc)
NumberOfObjWebElement = ObjWebElement.Count()
Your Code works absolutely fine.
But if you replace micclass = weblement with some other say
"WebEdit" or "WebList" it will not work.
I have faced this problem many a times. It always returns zero
Can you please modify your code that I am able to count number of webedits on my page.
It always works for Weblements but not for "Weblists"
I wanted to highlight the WinButtons which are enabled. But after running this script it displays value 0, in fact there are two Enabled WinButtons. What's the problem? I tried to search on this forum as well as in the QTP help but couldn't sort it out. Any clues??????