private List <AutomationElement> GetRowElements()
        {
            List <AutomationElement> descendants = automationElementFinder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Custom));
            var automationElements = new BricksCollection <AutomationElement>(descendants);

            return(automationElements.FindAll(rowPredicate));
        }
示例#2
0
        public virtual UIItemCollection GetAll(Predicate <AutomationElement> predicate, UIItemFactory factory, ActionListener actionListener)
        {
            List <AutomationElement> foundElements = list.FindAll(predicate);

            return(new UIItemCollection(foundElements, factory, actionListener));
        }
示例#3
0
 private List<AutomationElement> GetRowElements()
 {
     List<AutomationElement> descendants = automationElementFinder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Custom));
     var automationElements = new BricksCollection<AutomationElement>(descendants);
     return automationElements.FindAll(RowPredicate);
 }