Forum Discussion

paarmann-ara's avatar
paarmann-ara
Contributor
6 years ago

Find TabControl Objects Name

I have a Big Problem with find full name of object in a TabControl.

 

In my case, when I add a new shop in my test program, Automatically test program create a new page in TabControl.

Please find a attachment 1.jpg

 

Question: How can I find a full name of ListView in a tab during run TestComplete?

 

Fulname like: 

... .WinFormsObject("TabPage", "Test - Shop ").WinFormsObject("ArtikelDetailsStaffelPreiseTabControl").WinFormsObject("tableLayoutPanel1").WinFormsObject("listView").WinFormsObject("tlpMain").WinFormsObject("lv")

    • paarmann-ara's avatar
      paarmann-ara
      Contributor

      Many thanks for your response.

       

      I am sorry, in fact, I am not understand how can I recognize objects a new Tab.


      So, please look at pic 3.jpg. That is another example.

       

      Question: how can get a Listview name in tab?

      • Wamboo's avatar
        Wamboo
        Community Hero

        Okay, I get it.

        Do it like this.

         

        In this data stream (but only in it) search with .findall() all elements of "Text Object" ->

         

        Add them to the array ->

         

        Then remove the entries specifying column names from the array ->

         

        and you have all the elements mapped from the data grids.