UITechnologyManager UITechnologyManager UITechnologyManager UITechnologyManager Class

Definition

Provides an abstract base class for technology managers that is used during test recording and playback.

public ref class UITechnologyManager abstract : Microsoft::VisualStudio::TestTools::UITest::Extension::IUITechnologyManager
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")]
public abstract class UITechnologyManager : Microsoft.VisualStudio.TestTools.UITest.Extension.IUITechnologyManager
type UITechnologyManager = class
    interface IUITechnologyManager
Public MustInherit Class UITechnologyManager
Implements IUITechnologyManager
Inheritance
UITechnologyManagerUITechnologyManagerUITechnologyManagerUITechnologyManager
Derived
Attributes
Implements

Constructors

UITechnologyManager() UITechnologyManager() UITechnologyManager() UITechnologyManager()

Initializes a new instance of the UITechnologyManager class.

Properties

TechnologyName TechnologyName TechnologyName TechnologyName

Gets the technology name.

Methods

AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Adds an event handler to this technology manager.

AddGlobalEventHandler(UITestEventType, IUITestEventNotify) AddGlobalEventHandler(UITestEventType, IUITestEventNotify) AddGlobalEventHandler(UITestEventType, IUITestEventNotify) AddGlobalEventHandler(UITestEventType, IUITestEventNotify)

Adds a global event sink to this technology manager.

CancelStep() CancelStep() CancelStep() CancelStep()

Cancels any wait or search operation that is currently being performed by this technology manager because of calls to WaitForReady() or Search(Object, IUITechnologyElement, Int32).

ConvertToThisTechnology(IUITechnologyElement, Int32) ConvertToThisTechnology(IUITechnologyElement, Int32) ConvertToThisTechnology(IUITechnologyElement, Int32) ConvertToThisTechnology(IUITechnologyElement, Int32)

Takes an element from another technology and returns an element that is compatible for the current technology, along with the level of support it has for the converted element.

GetChildren(IUITechnologyElement, Object) GetChildren(IUITechnologyElement, Object) GetChildren(IUITechnologyElement, Object) GetChildren(IUITechnologyElement, Object)

Returns an enumerator for the child elements in the given element.

GetControlSupportLevel(IntPtr) GetControlSupportLevel(IntPtr) GetControlSupportLevel(IntPtr) GetControlSupportLevel(IntPtr)

Returns the indication of confidence for this technology manager that it can support the control that is identified with the provided handle.

GetControlSupportLevel(AutomationElement) GetControlSupportLevel(AutomationElement) GetControlSupportLevel(AutomationElement) GetControlSupportLevel(AutomationElement)
GetElementFromAutomationElement(AutomationElement, AutomationElement) GetElementFromAutomationElement(AutomationElement, AutomationElement) GetElementFromAutomationElement(AutomationElement, AutomationElement) GetElementFromAutomationElement(AutomationElement, AutomationElement)
GetElementFromNativeElement(Object) GetElementFromNativeElement(Object) GetElementFromNativeElement(Object) GetElementFromNativeElement(Object)

Returns an element from this technology that corresponds to the provided native element.

GetElementFromPoint(Int32, Int32) GetElementFromPoint(Int32, Int32) GetElementFromPoint(Int32, Int32) GetElementFromPoint(Int32, Int32)

Retrieves the element that is located at the given screen coordinates.

GetElementFromPoint(Int32, Int32, AutomationElement) GetElementFromPoint(Int32, Int32, AutomationElement) GetElementFromPoint(Int32, Int32, AutomationElement) GetElementFromPoint(Int32, Int32, AutomationElement)
GetElementFromWindowHandle(IntPtr) GetElementFromWindowHandle(IntPtr) GetElementFromWindowHandle(IntPtr) GetElementFromWindowHandle(IntPtr)

Retrieves the element that is identified by the provided window handle.

GetFocusedElement(IntPtr) GetFocusedElement(IntPtr) GetFocusedElement(IntPtr) GetFocusedElement(IntPtr)

Returns the windows pointer for the element that currently has the focus.

GetFocusedElement(AutomationElement) GetFocusedElement(AutomationElement) GetFocusedElement(AutomationElement) GetFocusedElement(AutomationElement)
GetLastInvocationInfo() GetLastInvocationInfo() GetLastInvocationInfo() GetLastInvocationInfo()

Returns information about the last test action that was invoked by this manager.

GetNextSibling(IUITechnologyElement) GetNextSibling(IUITechnologyElement) GetNextSibling(IUITechnologyElement) GetNextSibling(IUITechnologyElement)

Returns the next sibling of the given element in the UI hierarchy.

GetParent(IUITechnologyElement) GetParent(IUITechnologyElement) GetParent(IUITechnologyElement) GetParent(IUITechnologyElement)

Gets the parent of the given element in the UI hierarchy.

GetPreviousSibling(IUITechnologyElement) GetPreviousSibling(IUITechnologyElement) GetPreviousSibling(IUITechnologyElement) GetPreviousSibling(IUITechnologyElement)

Returns the previous sibling of the given element in the UI hierarchy.

GetSynchronizationWaiter(IUITechnologyElement, UITestEventType) GetSynchronizationWaiter(IUITechnologyElement, UITestEventType) GetSynchronizationWaiter(IUITechnologyElement, UITestEventType) GetSynchronizationWaiter(IUITechnologyElement, UITestEventType)

Returns an IUISynchronizationWaiter by using the provided element and event type.

GetTechnologyManagerProperty(UITechnologyManagerProperty) GetTechnologyManagerProperty(UITechnologyManagerProperty) GetTechnologyManagerProperty(UITechnologyManagerProperty) GetTechnologyManagerProperty(UITechnologyManagerProperty)

Returns the value of the given property of this technology manager.

MatchElement(IUITechnologyElement, Object, Boolean) MatchElement(IUITechnologyElement, Object, Boolean) MatchElement(IUITechnologyElement, Object, Boolean) MatchElement(IUITechnologyElement, Object, Boolean)

Returns a value that indicates whether the provided element matches the previously parsed query ID cookie.

ParseQueryId(String, Object) ParseQueryId(String, Object) ParseQueryId(String, Object) ParseQueryId(String, Object)

Parses the provided string representation of a query element and returns a string representation of the query element as a cookie.

ProcessMouseEnter(IntPtr) ProcessMouseEnter(IntPtr) ProcessMouseEnter(IntPtr) ProcessMouseEnter(IntPtr)

Processes the mouse enter event for the specified window or control.

RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify) RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Removes the specified event from the given element and all its descendents.

RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify) RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify) RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify) RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify)

Removes the specified event.

Search(Object, IUITechnologyElement, Int32) Search(Object, IUITechnologyElement, Int32) Search(Object, IUITechnologyElement, Int32) Search(Object, IUITechnologyElement, Int32)

Searches for an element in the parent element that matches the condition of the provided query ID cookie.

SetTechnologyManagerProperty(UITechnologyManagerProperty, Object) SetTechnologyManagerProperty(UITechnologyManagerProperty, Object) SetTechnologyManagerProperty(UITechnologyManagerProperty, Object) SetTechnologyManagerProperty(UITechnologyManagerProperty, Object)

When implemented in a derived class, sets the value of the given property in this technology manager.

StartSession(Boolean) StartSession(Boolean) StartSession(Boolean) StartSession(Boolean)

Performs any initialization that is required by this technology manager to start a session.

StopSession() StopSession() StopSession() StopSession()

Performs any cleanup required by this technology manager to stop the current session.

Extension Methods

FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestor<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestor<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>) FindAncestorOrSelf<TElementType>(TElementType, Func<TElementType,TElementType>, Func<TElementType,Boolean>)
FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>) FindAncestorOrSelf<TAncestorType,TElementType>(TElementType, Func<TElementType,TElementType>)
IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>) IsAncestorOf<TElementType>(TElementType, TElementType, Func<TElementType,TElementType>)

Microsoft internal use only.

Applies to