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

Code:
Copy      Help
name=SiteLabel""  class="WindowsForms10.STATIC.app.0.3ce0bb8_r15_ad1"  text="Site X"

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

Quote:name="" class="WindowsForms10.STATIC.app.0.3ce0bb8_r15_ad1" text="Site X"

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

Code:
Copy      Help
int SampleControl= DotNetFindControl(=win("App" "WindowsForms10.Window.8.app.0.3ce0bb8_r15_ad1") "")
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!
Stuart
#2
:oops:
I see that this is exactly what DotNetShowControlNames - I could put it's return into an array and parse it that way!
Thanks!
S


Forum Jump:


Users browsing this thread: 1 Guest(s)