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.
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.