Ejemplo n.º 1
0
        public void AppendText(UIAutomationElement element, int num)
        {
            string elementAttribute = string.Format("{0}\nName:{1}\nAutomationId:{2}\nControlType:{3}\nClassNmae:{4}\n",
                                                    num.ToString(), element.ElementName, element.ElementAutomationId, element.ElementControlType, element.ElementClassName);

            this.ShowElementText.AppendText(elementAttribute);
        }
 public UIAutomationElement(string sElementName, string sElementAutomationId, string sElementControlType, string sElementClassName, UIAutomationElement aeParent)
 {
     this.elementName         = sElementName;
     this.elementAutomationId = sElementAutomationId;
     this.elementControlType  = sElementControlType;
     this.elementClassName    = sElementClassName;
     this.parent = aeParent;
 }