Esempio n. 1
0
 private void GetAllChildren(UITestControl root, UIMap uiMap)
 {
     foreach (UITestControl child in root.GetChildren())
     {
         uiMap.AddUIObject(child.GetProperty(UITestControl.PropertyNames.UITechnologyElement) as IUITechnologyElement);
         GetAllChildren(child, uiMap);
     }
 }
Esempio n. 2
0
 private void GetAllChildren(UITestControl uiTestControl, UIMap map, string sep)
 {
     foreach (UITestControl child in uiTestControl.GetChildren())
     {
         map.AddUIObject((IUITechnologyElement)child.GetProperty(UITestControl.PropertyNames.UITechnologyElement));
         _sw.WriteLine(sep + "Type:" + child.ControlType + " >>>Name: " + child.FriendlyName + " >>>Class: " + child.ClassName + " >>>Enabled: " + child.Enabled + " >>>Technology Name:" + child.TechnologyName + " >>>Rectangle: " + child.BoundingRectangle);
         _sw.Flush();
         child.DrawHighlight();
         if (child.GetChildren().Count > 0)
         {
             sep = sep + ">";
         }
         GetAllChildren(child, map, sep);
     }
 }