public virtual SearchCriteria NotIdentifiedByText(string name)
 {
     conditions.Insert(0, new NotCondition(SearchConditionFactory.CreateForName(name)));
     return(this);
 }
 /// <summary>
 /// Create a SearchCriteria with text
 /// </summary>
 /// <param name="text">For managed applications this is name given to controls in the application code.
 /// For unmanaged applications this is text of the control or label next to it if it doesn't have well defined text.</param>
 /// <returns></returns>
 public static SearchCriteria ByText(string text)
 {
     return(new SearchCriteria(SearchConditionFactory.CreateForName(text)));
 }
 public virtual SearchCriteria AndByText(string text)
 {
     conditions.Insert(0, SearchConditionFactory.CreateForName(text));
     return(this);
 }