Platforms to show: All Mac Windows Linux Cross-Platform
UIAutomationMBS class New in 26.2
| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| class | UIAutomation | MBS WinFrameworks Plugin | 26.2 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
UI Automation exposes every element of the UI Automation as an object represented by the IUIAutomation interface. The members of this interface are not specific to a particular element.
All methods in the UIAutomation* classes raise an UIAutomationExceptionMBS in case of an error.
For the properties there are often cached and current values.
With current value, you send a request to the host application to query the value. With cached values you have the chance, that values could come from a cache if they have been recently read. This is increases performance.
We route events to main thread, if they are called on a different thread. Please keep the main thread responsive for event processing.
- 15 properties
- property AutoSetFocus as Boolean
- property CoalesceEvents as Integer
- property ConnectionRecoveryBehavior as Integer
- property ConnectionTimeout as UInt32
- property ContentViewCondition as UIAutomationTreeWalkerMBS
- property ContentViewWalker as UIAutomationTreeWalkerMBS
- property ControlViewCondition as UIAutomationConditionMBS
- property ControlViewWalker as UIAutomationTreeWalkerMBS
- property FocusedElement as UIAutomationElementMBS
- property Handle as Integer
- property ProxyFactoryMapping as UIAutomationProxyFactoryMappingMBS
- property RawViewCondition as UIAutomationConditionMBS
- property RawViewWalker as UIAutomationTreeWalkerMBS
- property RootElement as UIAutomationElementMBS
- property TransactionTimeout as UInt32
- 54 methods
- method AddActiveTextPositionChangedEventHandler(element as UIAutomationElementMBS, TreeScope as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationActiveTextPositionChangedEventHandlerMBS)
- method AddAutomationEventHandler(eventId as Integer, element as UIAutomationElementMBS, TreeScope as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationEventHandlerMBS)
- method AddChangesEventHandler(element as UIAutomationElementMBS, TreeScope as Integer, changeTypes() as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationChangesEventHandlerMBS)
- method AddEventHandlerGroup(element as UIAutomationElementMBS, handlerGroup as UIAutomationEventHandlerGroupMBS)
- method AddFocusChangedEventHandler(cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationFocusChangedEventHandlerMBS)
- method AddNotificationEventHandler(element as UIAutomationElementMBS, TreeScope as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationNotificationEventHandlerMBS)
- method AddPropertyChangedEventHandler(element as UIAutomationElementMBS, TreeScope as Integer, propertyArray() as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationPropertyChangedEventHandlerMBS)
- method AddStructureChangedEventHandler(element as UIAutomationElementMBS, TreeScope as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationStructureChangedEventHandlerMBS)
- method AddTextEditTextChangedEventHandler(element as UIAutomationElementMBS, TreeScope as Integer, textEditChangeType as Integer, cacheRequest as UIAutomationCacheRequestMBS, handler as UIAutomationNotificationEventHandlerMBS)
- method CompareElements(element1 as UIAutomationElementMBS, element2 as UIAutomationElementMBS) as Boolean
- method Constructor
- method CreateAndCondition(condition1 as UIAutomationConditionMBS, condition2 as UIAutomationConditionMBS) as UIAutomationAndConditionMBS
- method CreateAndCondition(conditions() as UIAutomationConditionMBS) as UIAutomationAndConditionMBS
- method CreateBoolCondition(value as boolean) as UIAutomationBoolConditionMBS
- method CreateCacheRequest as UIAutomationCacheRequestMBS
- method CreateEventHandlerGroup as UIAutomationEventHandlerGroupMBS
- method CreateFalseCondition as UIAutomationBoolConditionMBS
- method CreateNotCondition(condition as UIAutomationConditionMBS) as UIAutomationNotConditionMBS
- method CreateOrCondition(condition1 as UIAutomationConditionMBS, condition2 as UIAutomationConditionMBS) as UIAutomationOrConditionMBS
- method CreateOrCondition(conditions() as UIAutomationConditionMBS) as UIAutomationOrConditionMBS
- method CreatePropertyCondition(propertyId as Integer, value as Variant) as UIAutomationPropertyConditionMBS
- method CreatePropertyCondition(propertyId as Integer, value as Variant, PropertyConditionFlags as Integer) as UIAutomationPropertyConditionMBS
- method CreateProxyFactoryEntry(factory as UIAutomationProxyFactoryMBS) as UIAutomationProxyFactoryEntryMBS
- method CreateTreeWalker(Condition as UIAutomationConditionMBS) as UIAutomationTreeWalkerMBS
- method CreateTrueCondition as UIAutomationBoolConditionMBS
- method Destructor
- method ElementFromHandle(Handle as Integer) as UIAutomationElementMBS
- method ElementFromHandleBuildCache(Handle as Integer, cacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method ElementFromPoint(point as UIAutomationPointMBS) as UIAutomationElementMBS
- method ElementFromPoint(x as Integer, y as Integer) as UIAutomationElementMBS
- method ElementFromPointBuildCache(point as UIAutomationPointMBS, cacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method ElementFromPointBuildCache(x as Integer, y as Integer, cacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method ElementFromWindow(c as Control) as UIAutomationElementMBS
- method ElementFromWindow(c as DesktopUIControl) as UIAutomationElementMBS
- method ElementFromWindow(win as DesktopWindow) as UIAutomationElementMBS
- method ElementFromWindow(win as Window) as UIAutomationElementMBS
- method ElementFromWindowBuildCache(c as Control, CacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method ElementFromWindowBuildCache(c as DesktopUIControl, CacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method ElementFromWindowBuildCache(win as DesktopWindow, CacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method ElementFromWindowBuildCache(win as Window, CacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method FocusedElementBuildCache(CacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- method PatternProgrammaticName(patternId as Integer) as String
- method PropertyProgrammaticName(propertyId as Integer) as String
- method RemoveActiveTextPositionChangedEventHandler(element as UIAutomationElementMBS, handler as UIAutomationActiveTextPositionChangedEventHandlerMBS)
- method RemoveAllEventHandlers
- method RemoveAutomationEventHandler(eventId as Integer, element as UIAutomationElementMBS, handler as UIAutomationEventHandlerMBS)
- method RemoveChangesEventHandler(element as UIAutomationElementMBS, handler as UIAutomationChangesEventHandlerMBS)
- method RemoveEventHandlerGroup(element as UIAutomationElementMBS, handlerGroup as UIAutomationEventHandlerGroupMBS)
- method RemoveFocusChangedEventHandler(handler as UIAutomationFocusChangedEventHandlerMBS)
- method RemoveNotificationEventHandler(element as UIAutomationElementMBS, handler as UIAutomationNotificationEventHandlerMBS)
- method RemovePropertyChangedEventHandler(element as UIAutomationElementMBS, handler as UIAutomationPropertyChangedEventHandlerMBS)
- method RemoveStructureChangedEventHandler(element as UIAutomationElementMBS, handler as UIAutomationStructureChangedEventHandlerMBS)
- method RemoveTextEditTextChangedEventHandler(element as UIAutomationElementMBS, handler as UIAutomationNotificationEventHandlerMBS)
- method RootElementBuildCache(CacheRequest as UIAutomationCacheRequestMBS) as UIAutomationElementMBS
- 56 constants
This class has no sub classes.
Blog Entries
Some methods using this class:
- UIAutomationTreeWalkerMBS.Constructor(Automation as UIAutomationMBS, condition as UIAutomationConditionMBS)
Some examples using this class:
Some related classes:
- class UIAutomationCacheRequestMBS
- class UIAutomationChangesEventHandlerMBS
- class UIAutomationConditionMBS
- class UIAutomationEventHandlerGroupMBS
- class UIAutomationEventHandlerMBS
- class UIAutomationFocusChangedEventHandlerMBS
- class UIAutomationPropertyConditionMBS
- class UIAutomationProxyFactoryMappingMBS
- class UIAutomationStructureChangedEventHandlerMBS
- class UIAutomationTreeWalkerMBS
The items on this page are in the following plugins: MBS WinFrameworks Plugin.
UIAutomationLegacyIAccessiblePatternMBS - UIAutomationMultipleViewPatternMBS