Jacob.UIAutomation 1.0.0

dotnet add package Jacob.UIAutomation --version 1.0.0
NuGet\Install-Package Jacob.UIAutomation -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Jacob.UIAutomation" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jacob.UIAutomation --version 1.0.0
#r "nuget: Jacob.UIAutomation, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Jacob.UIAutomation as a Cake Addin
#addin nuget:?package=Jacob.UIAutomation&version=1.0.0

// Install Jacob.UIAutomation as a Cake Tool
#tool nuget:?package=Jacob.UIAutomation&version=1.0.0

Jacob.UIAutomation中的所有方法都是在工作中总结出来的,很多地方都不完善,目前是版本1.0.0.0, 之后会不断更新提供更强大的版本。

如果使用中使用有不明白的地方或者bug,请发邮件给我: Jacob.Xu.Chen@outlook.com

根据UIAutomation封装了很多自定义方法 现在只需要实例化之后 直接调用方法即可完成。比如单击某个按钮,现在只需要直接调用ClickElement,非常实用。

ClickElement 单击指定的自动化元素  
DisselectAllDataGridRow 不选中所有行  
DisselectDataGridRow 不选中特定的某一行  
FocusWindow 获取窗口焦点  
GetAllElement 获取指定父自动化元素下的所有激活的控件  
GetAllElementDetails 获取指定自动化元素下的详细信息包括AutomationID,ControlType以及Name  
GetAllMenus 获取所有菜单项  
GetAllSubMenus 获取某个菜单下的所有子菜单项  
GetColumnsFromGridLine 获取指定行的所有列  
GetColumnValuesFromGridLine 获取行的每一列数据  
GetControlType(AutomationElement) 获取制动自动化元素的控件类型  
GetControlType(TypeOfControl) 获取UIAutomation的控件类型  
GetDocumentText 获取document控件的值  
GetElementByID 获取父自动化元素下指定元素控件ID的引用  
GetElementByName 获取父自动化元素下的指定子元素的引用  
GetElementsByControlType 获取父自动化元素下的特定类型的所有自动化元素  
GetGridLinesFromDataGrid 获取网格控件的全部行元素的引用  
GetHeaderFromDataGrid 获取指定网格控件的标题栏引用  
GetMenuBar 获取菜单栏控件  
GetMenuByName 通过特定的名称去获取菜单UI自动化元素  
GetName 获取指定自动化元素的名称  
GetSubMenuByName 获取主菜单下的指定子菜单项的引用  
GetValue 获取指定自动化元素的值  
GetWindowByName(String) 获取desktop下的指定窗口名称的子UI自动化元素  
GetWindowByName(String, AutomationElement) 获取特定父UI自动化元素下的制定窗口名称的子UI自动化元素  
GetWindowList() 获取当前桌面根下所有的UI自动化元素下  
GetWindowList(AutomationElement) 获取特定父UI自动化元素下的所有窗口的名称  
RefindMainApplication 重新获取desktop下的指定窗口的自动化元素引用  
SelectAllDataGridRow 选中所有行  
SelectDataGridRow(AutomationElement) 选中特定的某一行  
SelectDataGridRow(AutomationElement, Boolean) 将特定的DateGridRow加入选中项中  
SelectValueInComboBox 从下拉框中选中指定值的项  
SelectValueInListBox 从列表中选中指定值的项  
SetValue 给予指定自动化元素赋值  

Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 3,273 7/15/2015