0 set iDrop= iBrowser.Window(..).Page(..).Frame(..)
1. Set oDesc = Description.Create()
2. oDesc("micClass").Value = "WebElements"
3. oDesc("visible").Value = true
4. Set Counter = iDrop.ChildObjects(oDesc)
5. ObjectsOnPage= Counter.Count()
Hi guys, I need your help. I'm using version 8 and DP.
The code above attempts to count all WebElements in a frame. Initially, without line no. 3, the count was over 600. When I added line no. 3, the count decreased to 433.
I added another filter for "class:=treenode" and it further decreased the count.
Further,I tried to filter this by requesting only objects which innertext is not null,i wrote;
oDesc("innertext").Value = ".*"
This, however, gives me a Zero count. Writing oDesc("innertext").Value = NOT Null is basically what I'm trying to do. But, of course, it gives me a syntax error.
Could anyone please show me the light.
Maybe this will work:
oDesc("innertext").Value <> ""
"The last 10% of any software project will take 90% of the budgeted time. The first 90% will take the other 90%"
I tried that before and got error
First of all
oDesc("micClass").Value = "WebElements"
this should be
oDesc("micClass").Value = "WebElement"
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
Yeah, this is without the "s". sorry for the typo