Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem wiith Blank labels in DotNetFindControls
Hi Gintaras,
I am using DotNetControls to get text from an app and it works great if there are label names like this:

Copy      Help
name=SiteLabel""  class=""  text="Site X"

but much of the text is in located in lines where the label is empty: "" like this:

Quote:name="" class="" text="Site X"

When I use the DotNetFindControl it only returns the first one with the "" label.

Copy      Help
int SampleControl= DotNetFindControl(=win("App" "") "")
str Name.getwintext(SampleControl)
out Name

Is there any way to return them all.
I could probably then text scrape out what I need if they come in an array (i.e. the one that matches a certain RegEx or the one that follows an invariant label, etc).
Thanks for any ideas!
I see that this is exactly what DotNetShowControlNames - I could put it's return into an array and parse it that way!

Forum Jump:

Users browsing this thread: 1 Guest(s)