Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gathering certain child objects
#1
Not Solved
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:

=========================================================

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
Reply


Messages In This Thread
Gathering certain child objects - by SBsteven - 11-13-2009, 10:13 PM
RE: Gathering certain child objects - by SBsteven - 11-14-2009, 12:16 AM
RE: Gathering certain child objects - by SBsteven - 11-14-2009, 01:19 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTreeview - Color validation for child item YogeshCallappa 0 2,126 11-10-2016, 04:55 PM
Last Post: YogeshCallappa
  Driver Script to control child scripts sumanhyd 1 3,024 07-26-2016, 07:06 PM
Last Post: Ankesh
  UFT 12.50 unable to recognize child objects from a Dialog Class in Firefox jesusisaac 1 3,630 08-20-2015, 11:39 PM
Last Post: ADITI1992
  Child object shwetakondekar 0 2,050 07-01-2015, 03:28 PM
Last Post: shwetakondekar
  How to write a script for fly out menus (Parent - Child - Sub Child) rajkumarsm 3 4,507 09-02-2014, 10:01 AM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)