I have narrowed down the code I need to grab only the child objects from the webpage that I want, by using three filters. I just found out that I need to narrow it down a bit more.
I only want the objects that DO NOT have "LCP" in the "innertext".
Here is the code that I am using:
=========================================================
=======================================================
But it is erroring on this line:
I think it doesn't like me using the "<>" to designate NOT EQUAL there. What other syntax can I use?
I can't just use what the innertext does equal because this changes. But I do know that I don't want it to have LCP in the beginning of the object's name.
Thanks!
SBsteven
Also should I be using "text" or "innertext"?
SBsteven
I only want the objects that DO NOT have "LCP" in the "innertext".
Here is the code that I am 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("text").Value <> "LCP.*"
oDesc("text").regularExpression = True
But it is erroring on this line:
Code:
oDesc("text").Value <> "LCP.*"
I think it doesn't like me using the "<>" to designate NOT EQUAL there. What other syntax can I use?
I can't just use what the innertext does equal because this changes. But I do know that I don't want it to have LCP in the beginning of the object's name.
Thanks!
SBsteven
Also should I be using "text" or "innertext"?
SBsteven