IUITechnologyManager 接口

定义

提供实现类的内部接口 UITechnologyManager 。 不要直接实现此接口。 而是从类派生 UITechnologyManager

public interface class IUITechnologyManager
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("1984584A-4C77-488a-BD8B-3D7FE868F5B8")]
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IUITechnologyManager
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("1984584A-4C77-488a-BD8B-3D7FE868F5B8")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IUITechnologyManager = interface
Public Interface IUITechnologyManager
派生
属性

属性

TechnologyName

获取技术的名称。

方法

AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

添加事件处理程序。

CancelStep()

取消此技术管理器执行的任何等待或搜索操作。

ConvertToThisTechnology(IUITechnologyElement, Int32)

采用其他技术中的元素,并返回与当前技术兼容的元素,以及针对转换后的元素的支持级别。

GetChildren(IUITechnologyElement, Object)

返回给定元素中的子元素的枚举器。

GetControlSupportLevel(IntPtr)

返回此技术管理器的置信度指示,它可以支持用提供的句柄标识的控件。

GetElementFromNativeElement(Object)

从此技术返回一个与提供的本机元素对应的元素。

GetElementFromPoint(Int32, Int32)

检索位于给定屏幕坐标位置的元素。

GetElementFromWindowHandle(IntPtr)

检索由提供的窗口句柄标识的元素。

GetFocusedElement(IntPtr)

返回当前具有焦点的元素的 windows 指针。

GetLastInvocationInfo()

返回有关此管理器调用的上一个测试操作的信息。

GetNextSibling(IUITechnologyElement)

返回 UI 层次结构中给定元素的下一个同级元素。

GetParent(IUITechnologyElement)

获取 UI 层次结构中给定元素的父元素。

GetPreviousSibling(IUITechnologyElement)

返回 UI 层次结构中给定元素的上一个同级元素。

GetSynchronizationWaiter(IUITechnologyElement, UITestEventType)

IUISynchronizationWaiter使用提供的元素和事件类型返回。

GetTechnologyManagerProperty(UITechnologyManagerProperty)

返回此技术管理器的给定属性的值。

MatchElement(IUITechnologyElement, Object, Boolean)

返回一个值,该值指示提供的元素是否与以前分析的查询 ID cookie 匹配。

ParseQueryId(String, Object)

分析所提供的查询元素的字符串表示形式,并以 cookie 形式返回 query 元素的字符串表示形式。

RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

从给定元素及其所有子代中移除指定的事件。

Search(Object, IUITechnologyElement, Int32)

搜索父元素中与所提供的查询 ID cookie 的条件相匹配的元素。

SetTechnologyManagerProperty(UITechnologyManagerProperty, Object)

在派生类中实现时,设置此技术管理器中给定属性的值。

StartSession(Boolean)

执行此技术管理器启动会话所需的任何初始化。

StopSession()

执行此技术管理器停止当前会话所需的任何清理。

适用于