CodedUi :How to go about for search property of window when its title name keeps changing?
问题 I am trying to automate a click on control within window, and depending on what is selected within window, the tile of the window changes.Like sometime it is "abc",second time it will be "123".There is no common string in window title for two scenarios When I recorded the coded ui test, it assumed the title as "abc". Now I want to customize the test somehow, so that any title will work. How can I do so? Any help will be great. 回答1: You can change the searchProperties in runtime, like this: