11-14-2009, 01:19 AM
(Just had some help over at the HP Forums)
Here is the NEW code I am now using:
===========================================
============================================
But now I have another question.
I was just told by a team member to NOT use the x value as a filter, but instead use the instr function.
I could just iterate through the child objects using an index and exclude them if their innertext contains LCP and I could do that with the instr function.
Problem is I don't know much about instr functions. I will do some searching on the web, unless someone here would like to give me a head start on it.
Thanks,
SBsteven
Here is the NEW code I am now using:
===========================================
Code:
Dim oDesc 'Description Object
Dim colObject 'Object Collection
Set oDesc = Description.Create
oDesc("micclass").Value = "WebElement"
oDesc("html tag").Value = "SPAN"
oDesc("x").Value = 180
oDesc("innertext").Value = ".*[^LCP]"
Set colObject = Browser("micClass:=Browser").Page("micClass:=Page").ChildObjects( oDesc )
'Retrieve the count
iCount = colObject.Count
msgbox iCount
'Count is now coming back with "2", which is correct
============================================
But now I have another question.
I was just told by a team member to NOT use the x value as a filter, but instead use the instr function.
I could just iterate through the child objects using an index and exclude them if their innertext contains LCP and I could do that with the instr function.
Problem is I don't know much about instr functions. I will do some searching on the web, unless someone here would like to give me a head start on it.
Thanks,
SBsteven