public static SearchCriteria ByControlType(Type testControlType) { var searchCriteria = new SearchCriteria(SearchConditionFactory.CreateForControlType(testControlType)); searchCriteria.InferCustomItemType(testControlType); return(searchCriteria); }
internal static SearchCriteria ForMenuBar(WindowsFramework framework) { var searchCriteria = new SearchCriteria(SearchConditionFactory.CreateForControlType(typeof(MenuBar), framework.ToString())); return(searchCriteria.NotIdentifiedByText("System Menu Bar")); }
public static SearchCriteria ByControlType(ControlType controlType) { return(new SearchCriteria(SearchConditionFactory.CreateForControlType(controlType))); }
public virtual SearchCriteria AndControlType(ControlType controlType) { conditions.Insert(0, SearchConditionFactory.CreateForControlType(controlType)); return(this); }
public virtual SearchCriteria AndControlType(Type testControlType) { InferCustomItemType(testControlType); conditions.Insert(0, SearchConditionFactory.CreateForControlType(testControlType)); return(this); }