Share via


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
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("CAF9DAD2-AA2F-47ad-953A-C4596EB6A3E1")>]
type UITechnologyManager = class
    interface IUITechnologyManager
Public MustInherit Class UITechnologyManager
Implements IUITechnologyManager
Inheritance
UITechnologyManager
Derived
Attributes
Implements

Constructors

UITechnologyManager()

Initializes a new instance of the UITechnologyManager class.

Properties

TechnologyName

Gets the technology name.

Methods

AddEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

Adds an event handler to this technology manager.

AddGlobalEventHandler(UITestEventType, IUITestEventNotify)

Adds a global event sink to this technology manager.

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)

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)

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

GetControlSupportLevel(AutomationElement)
GetControlSupportLevel(IntPtr)

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

GetElementFromAutomationElement(AutomationElement, AutomationElement)
GetElementFromNativeElement(Object)

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

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

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

GetElementFromWindowHandle(IntPtr)

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

GetFocusedElement(AutomationElement)
GetFocusedElement(IntPtr)

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

GetLastInvocationInfo()

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

GetNextSibling(IUITechnologyElement)

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

GetParent(IUITechnologyElement)

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

GetPreviousSibling(IUITechnologyElement)

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

GetSynchronizationWaiter(IUITechnologyElement, UITestEventType)

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

GetTechnologyManagerProperty(UITechnologyManagerProperty)

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

MatchElement(IUITechnologyElement, Object, Boolean)

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

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)

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

RemoveEventHandler(IUITechnologyElement, UITestEventType, IUITestEventNotify)

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

RemoveGlobalEventHandler(UITestEventType, IUITestEventNotify)

Removes the specified event.

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)

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

StartSession(Boolean)

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

StopSession()

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

Applies to