06-26-2012, 04:41 PM
I need to do a regression test on my company's program, but many of the buttons do not have names attached so click on objects based off names is useless. If I do it based off ID it is also useless because the IDs will change when I upgrade the software. I need a way to have a baseline for all the regression tests. So the best way I can think of right now is to gather all the objects in an array, and do a DoDefaultAction on the array element to hit the buttons. If I keep the code as it is the code would be useless because if the developer adds a new object in between element 66 and 67 it would push every element down by one and all the objects being clicked would do something completely different from what I am expecting.
