UIAutomation is a new set of UI Automation testing technologies that Microsoft has launched from Windows Vista, referred to as UIA. In the latest Windows SDK, other components that support UI Automation technology, such as UIA and MSAA, are released together, called the Windows Automation API.
UIA defines a new interface and pattern for UI Automation. Treewalker/findall that support traversal and conditional queries on UI elements, respectively. Defines the UIA property for reading and writing UI element properties, including name, ID, Type, ClassName, location, visibility, and so on. Defines the UIA Pattern for UI element behavior, such as SELECT, Expand, Resize, Check, value, and so on. The UIA event interface is also introduced to allow the test program to be notified after certain events have occurred, such as new window opening events.
The introduction in MSDN is really very detailed, where is theMSDN documentation for UI Automation. In this:http://msdn.microsoft.com/en-us/library/ms753107.aspx We only look at the key section: Using UI Automation for automated Testing The above documents can be found in various complex situations.
But for a person who has just come into contact, chatty's documentation makes it impossible. For this reason I in the UI Automation based on the work often encountered in the situation, the various operations are encapsulated, all the methods are on their own keyboard knocked out, the current version of 1.0.0.0 is still relatively rough, in use may encounter bugs, etc., please point out, I will continue to improve. If Daniel thinks his level is already very high, can float over, hehe.
The following methods are currently encapsulated in this release:
Please download the Help file at Csdn, http://download.csdn.net/detail/chenxu7601257/5163879
How to get DLL files, use NuGet to get, if not know what NuGet is using NuGet, click here http://kb.cnblogs.com/page/143190/
Under the Manage Nuget Packages window, search for Jacob or Jacob.uiautomation, the first one is, and then install to successfully reference the DLL to your project.
Reminder: This version is 1.0.0.0, which has a lot of imperfect places, have any good comments and suggestions, please share together, grow together. Thank you.
If there is a need to reprint, trouble mark the source, thank you. Support the original!
Jacob.UIAutomation.dll (. NET UI Automation Encapsulation)-absolutely original