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 |
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 |
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 |
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 |
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 |
(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 |
(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 |
(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 |
(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 |
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 |
(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 |
(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 |
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 |
(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 |
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 |
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.