Why do my dropdown objects in GUI windows change identity each time I run my tested application?
I'm new to TC.
I am running and recording keyword tests on an Excel Add-In Toolbar which is primarily GUI with many buttons and controls.
There is one button that when clicked opens a Window. TC can properly find this window and identify it as a .NET ObjectBuilderForm.
In the window there is a drop down menu. When clicked, TC identifies this menu as elementHost13. Now when I run the keyword test, it works ok. But when I close Excel and reopen and rerun, it never works again. With more investigation, it turns out that the same exact drop down bar in the same exact Window that is opened through the same exact strokes is unable to be found, because it's now known as elementHost14. And repeating everything again, the next time I try it's now known as elementHost15.
Why is the same element always changing? This is making it impossible for me to run tests because the object I need to access can never be recognized.
Thanks in advance.