cancel
Showing results for 
Search instead for 
Did you mean: 

Find TabControl Objects Name

Contributor

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")

9 REPLIES 9
Community Leader

Re: Find TabControl Objects Name

Hi

 

Enable this option in TestComplete for your object:

 

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/open-apps/...

 

After that use spay to mark this object and now you can map this text into NameMapping or use find() with multiple parameters.

Contributor

Re: Find TabControl Objects Name

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?

Community Leader

Re: Find TabControl Objects Name

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.

Contributor

Re: Find TabControl Objects Name

Thanks for your reply.

 

But I get this Error:

RuntimeError: Invalid number of parameters.

Community Leader

Re: Find TabControl Objects Name

give us some code example Smiley Wink

Community Manager

Re: Find TabControl Objects Name

Thanks for the help, Wamboo.

 

@m_Ghorbani, was the issue resolved? Please share the solution with us.

 

 

---------
Tanya Gorbunova
SmartBear Community Manager

Join the annual community event and share your stories to win gifts
Wintertainment2019
Contributor

Re: Find TabControl Objects Name

Good day,

unfortunatly I do not find a way.

I just wait to imporve my experiance in TC. Maybe after that I find a way.  

Community Manager

Re: Find TabControl Objects Name

Hi @m_Ghorbani,

We have a great TestCompete learning course:

https://academy.smartbear.com/store/575377-testcomplete-basics-web-testing

 

Perhaps, it's worth watching it. The course is oriented for Web Testing. However, it describes many basics approaches that can be used for desktop applications.

 
---------
Tanya Gorbunova
SmartBear Community Manager

Join the annual community event and share your stories to win gifts
Wintertainment2019
Contributor

Re: Find TabControl Objects Name

@TanyaGorbunova  Many thanks for your Link ;-)