This version introduces new elements' object model that simplifies using of elements' patterns. For more information, please refer to
the documentation page and
presentation.
Since this version, the module works with Microsoft's UI Automation via wrappers what is no change for all except those who mix cmdlets and bare calls to UI Automation.
In the last case you need to add conversion:
Since this version, the module works with Microsoft's UI Automation via wrappers what is no change for all except those who mix cmdlets and bare calls to UI Automation.
In the last case you need to add conversion:
# $nativeElement is AutomationElement# $wrapperElement is an IUiElementIUiElementProxy, the type the module returns$nativeElement=$wrapperElement.GetSourceElement(); $wrapperElement=[UiAutomation.AutomationFactory]::GetUiElement($nativeElement);