You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to convert an object ele of type **AutomationElement **defined by Microsoft's uiautomationg library(uiautomation) to a flauiEle object of type **AutomationElement **defined by the **flaui **library?
Both uiautomation library and flaui library are for automating the processing of windows desktop windows and their child controls. flaui is a wrapper and optimisation of uiautomation, so then both libraries define the AutomationElement class, just with the same class name. So how do they convert to each other?
Here's my c# code.
System.Windows.Automation.AutomationElement ele = ... //Element object of type AutomationElement obtained from Microsoft's uiautomation library
UIA3Automation uiauto3 = new UIA3Automation();
FlaUI.Core.AutomationElements.AutomationElement flauiEle = uiauto3.WrapNativeElement(ele);//flaui has this conversion method, but the code throws an exception.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to convert an object ele of type **AutomationElement **defined by Microsoft's uiautomationg library(uiautomation) to a flauiEle object of type **AutomationElement **defined by the **flaui **library?
Both uiautomation library and flaui library are for automating the processing of windows desktop windows and their child controls. flaui is a wrapper and optimisation of uiautomation, so then both libraries define the AutomationElement class, just with the same class name. So how do they convert to each other?
Here's my c# code.
System.Windows.Automation.AutomationElement ele = ... //Element object of type AutomationElement obtained from Microsoft's uiautomation library
UIA3Automation uiauto3 = new UIA3Automation();
FlaUI.Core.AutomationElements.AutomationElement flauiEle = uiauto3.WrapNativeElement(ele);//flaui has this conversion method, but the code throws an exception.
Beta Was this translation helpful? Give feedback.
All reactions