What is the API for Windows UI Controls as we have WebElement for web and AndroidElement for Android.
Do we have something as WindowsElement?
Because I want to write a similar function as below to find the Windows UI Controls
public static WebElement FindUIObject(string UIObjectName) { int ChildObjectsCount = 0; IList<Ranorex.Core.Repository.RepoItemInfo> ListOfParentObject = null; IEnumerator<Ranorex.Core.Repository.RepoItemInfo> ListOfChildObjects = null; IList<Ranorex.Core.Repository.RepoItemInfo> ListOfObjects = null; UIObjectName = "ObjectRepository." + UIObjectName; IEnumerator<Ranorex.Core.Repository.RepoItemInfo> ListOfAllObjects = OR.SelfInfo.Children.GetEnumerator(); while(ListOfAllObjects.MoveNext()) { if(UIObjectName.Contains(ListOfAllObjects.Current.ParentFolder.ToString())) { ListOfParentObject = ListOfAllObjects.Current.Children; ListOfChildObjects = ListOfParentObject.GetEnumerator(); break; } } WebElement MyWebElement = null; MyWebElement = FindObjectInList(ListOfParentObject,UIObjectName); if(MyWebElement == null) { while(ListOfChildObjects.MoveNext()) { ListOfObjects = ListOfChildObjects.Current.Children; ChildObjectsCount = ListOfObjects.Count; if(ChildObjectsCount > 0) { MyWebElement = FindObjectInList(ListOfObjects,UIObjectName); if(MyWebElement != null) { return MyWebElement; } else if (MyWebElement == null) { GlobalValue.ErrorMessage = "Object not found in the object repository"; } } else { break; } } } return MyWebElement; }