private List <AutomationElement> GetRowElements() { List <AutomationElement> descendants = automationElementFinder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Custom)); var automationElements = new BricksCollection <AutomationElement>(descendants); return(automationElements.FindAll(rowPredicate)); }
public virtual UIItemCollection GetAll(Predicate <AutomationElement> predicate, UIItemFactory factory, ActionListener actionListener) { List <AutomationElement> foundElements = list.FindAll(predicate); return(new UIItemCollection(foundElements, factory, actionListener)); }
private List<AutomationElement> GetRowElements() { List<AutomationElement> descendants = automationElementFinder.Descendants(AutomationSearchCondition.ByControlType(ControlType.Custom)); var automationElements = new BricksCollection<AutomationElement>(descendants); return automationElements.FindAll(RowPredicate); }