UIAutomationClient


In the other blog about UI automation, I forgot to mention how to add the reference and should have included the solution. The assembly to reference is called UIAutomationClient in Visual Studio 2010. Use this MSDN article and James McCaffrey's blog to get started. I am attaching my sample solution here but the Windows form application it's testing is missing. However, the code itself and the comments in the code should give you enough idea on how to write your unit tests of the Windows form application. The picture below shows the assembly reference to get started.

MDSWebServiceClientTest.zip

Skip to main content