Can't determine if a certain UITestControl exists in my web app
问题 I'm currently trying to help automate some coded UI tests using C# for a web application. A frequent problem I'm encountering is that it can be extremely difficult to determine if a UITestControl object exists on the page or not. Unfortunately, Microsoft's documentation on their MSDN website for anything regarding coded UI tests is practically non-existant (see here their page for UITestControl). Basically what I'm asking is: What is the best way to determine if a UITestControl exists on the