cancel
Showing results for 
Search instead for 
Did you mean: 

Getting item name list in listboxes

SOLVED
Contributor

Getting item name list in listboxes

Hi,

While looking in the script manifesting of some test recordings that i've tried, i found out that in some cases (for example: when trying to click on an item on windows taskbar) - the item is only saved by its location.

That means that if my app was the third one on the application lists on the taskbar, and on the next time we run it - it's the 4th because someone opened another app - the script won't be work.

Is there a way to get the content of the taskbar and access the apps by names?

one important note: i saw this in my own app as well and not only on windows taskbar - this is just an easy to reproduce example.

Thanks,

Nadav.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Getting item name list in listboxes

You've run into one of the drawbacks of recordings - it will save a location for your action rather than the particular object you want.  

 

Besides the reference that @baxatob gave you, also take a look at this link for naming your objects.  You'll want to update your tests to this at some point instead of just recording.

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/over...

2 REPLIES 2
Community Hero

Re: Getting item name list in listboxes

Hi,

 

Why do you need to click an item on the taskbar? If you need to launch your application, do it through the TestedApps >>

 

And here is detailed explanation about how to work with list box controls >>

Community Hero

Re: Getting item name list in listboxes

You've run into one of the drawbacks of recordings - it will save a location for your action rather than the particular object you want.  

 

Besides the reference that @baxatob gave you, also take a look at this link for naming your objects.  You'll want to update your tests to this at some point instead of just recording.

 

https://support.smartbear.com/testcomplete/docs/testing-with/object-identification/name-mapping/over...

New Here?
Join us and watch the welcome video:
Join the Online Event to Win