Forum Discussion

Nimeshika's avatar
Nimeshika
Contributor
11 years ago

2 objects with same adresses

Hello,

     I have a container with wndClass "WindowForms10.Window.8.app.0.2bf8098_r12_ad1", within which I have panels.

  Each panel has a label(winformObject) of wndClass 
"WindowForms10STATIC.app.0.2bf8098_r12_ad1". 

I am able to spy each label seperately .. but their addresses are the same,inspite of using Text recognition.

Now when I want to perform click on label 1 it clicks on a different label since there is no difference in adresses of labels.

FindChild() is returning null for the container even when childCount>0.



Kindly help me perform actions on required labels by using their text.




2 Replies

  • Marsha_R's avatar
    Marsha_R
    Icon for Champion Level 3 rankChampion Level 3
    Have you looked in the Advanced view of the properties?  I usually find the text somewhere in there.



    See attached.
  • Hello Robertson,

              I am actually able to get the text of the label. But my problem is when I have to click on label with name "abc" it will click on any other label say "xyz". this is happening because the adresses of the label are similar.

    Even through text recognition the adresses of labels are not varying.

               The find method and findChild method is returning null, so I cannot perform action on required label.