Platforms to show: All Mac Windows Linux Cross-Platform

Back to UIAutomationMBS class.

UIAutomationMBS.AutoSetFocus as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies whether calls to UI Automation control pattern methods automatically set focus to the target element.

By default, most UI Automation methods that perform an action on an element, such as Invoke and SetValue, set focus to the element before performing the action. For most applications, setting the focus results in a more consistent user experience. In situations where setting the focus would be disruptive, such as automating a drop-down menu, you can set AutoSetFocus to FALSE to prevent UI Automation methods from setting the focus.
(Read and Write property)

UIAutomationMBS.CoalesceEvents as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Gets or sets whether an accessible technology client receives all events, or a subset where duplicate events are detected and filtered.

coalesceEventsOptions: Value indicating whether events are filtered. The default is CoalesceEventsOptionsDisabled.

For Windows 10, version 1809 or later.
(Read and Write property)

UIAutomationMBS.ConnectionRecoveryBehavior as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Indicates whether an accessible technology client adjusts provider request timeouts when the provider is non-responsive.

For Windows 10, version 1809 or later.
(Read and Write property)

UIAutomationMBS.ConnectionTimeout as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the length of time that UI Automation will wait for a provider to respond to a client request for an automation element.

The duration of the time-out period, in milliseconds.
(Read and Write property)

UIAutomationMBS.ContentViewCondition as UIAutomationTreeWalkerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves a predefined UIAutomationCondition interface that selects content elements.

(Read only property)

UIAutomationMBS.ContentViewWalker as UIAutomationTreeWalkerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves an UIAutomationTreeWalker interface used to discover control elements.

(Read only property)

UIAutomationMBS.ControlViewCondition as UIAutomationConditionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves a predefined UIAutomationCondition interface that selects control elements.

(Read only property)

UIAutomationMBS.ControlViewWalker as UIAutomationTreeWalkerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves an UIAutomationTreeWalker interface used to discover control elements.

(Read only property)

UIAutomationMBS.FocusedElement as UIAutomationElementMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves the UI Automation element that has the input focus.

The GetFocusedElement method returns the UIA_E_ELEMENTNOTAVAILABLE error code if the focused element is already removed by the time the method returns. Clients should handle errors from this method gracefully; for example, by trying the call again.
(Read only property)

Some examples using this property:

UIAutomationMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Internal object reference.

(Read and Write property)

UIAutomationMBS.ProxyFactoryMapping as UIAutomationProxyFactoryMappingMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves an object that represents the mapping of Window classnames and associated data to individual proxy factories.

(Read only property)

UIAutomationMBS.RawViewCondition as UIAutomationConditionMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves a predefined UIAutomationCondition interface that selects all UI elements in an unfiltered view.

Used by itself, the condition is functionally identical to the one retrieved by CreateTrueCondition.
(Read only property)

UIAutomationMBS.RawViewWalker as UIAutomationTreeWalkerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves a tree walker object used to traverse an unfiltered view of the Microsoft UI Automation tree.

(Read only property)

UIAutomationMBS.RootElement as UIAutomationElementMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Retrieves the UI Automation element that represents the desktop.

You can use the root element as a starting point for finding other elements, using the FindAll and FindFirst methods.

When searching from the root element, be sure to specify TreeScopeChildren in the scope of the search, not TreeScopeDescendants. A search through the entire subtree of the desktop could iterate through thousands of items and lead to a stack overflow.
(Read only property)

UIAutomationMBS.TransactionTimeout as UInt32

Type Topic Plugin Version macOS Windows Linux iOS Targets
property UIAutomation MBS WinFrameworks Plugin 26.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Specifies the length of time that UI Automation will wait for a provider to respond to a client request for information about an automation element.

The duration of the time-out period, in milliseconds.
(Read and Write property)

The items on this page are in the following plugins: MBS WinFrameworks Plugin.


The biggest plugin in space...