public void Press(string itemname)
        {
            AutomationElement menuitem = _getitem(itemname);

            try
            {
                UIAControlBase c = new UIAControlBase(new UIACondition(menuitem));
                c.Click(3, 3);
                return;
            }
            catch
            {
                ControlSearcher.ThrowError(ErrorType.CannotPerformThisOperation);
            }
        }
Exemple #2
0
        public string GetCellValue(int rowindex, string columnname)
        {
            AutomationElement iae = _getcell(rowindex, columnname);
            UIAControlBase    ab  = new UIAControlBase(new UIACondition(iae));

            if (ab.Value != "")
            {
                return(ab.Value);
            }
            if (ab.Text != "")
            {
                return(ab.Text);
            }
            return("");
        }