public Data(string prop, string value, HowSearch howS = HowSearch.ExactMatch, DataType type = DataType.Check) { Value = value; Prop = prop; howSearch = howS; Type = type; }
public static bool IsValueFit(string value, string CompareWith, HowSearch howCompare) { value = value.ToLower(); CompareWith = CompareWith.ToLower(); switch (howCompare) { case HowSearch.ExactMatch: return(value == CompareWith); case HowSearch.Contains: return(value.Contains(CompareWith)); case HowSearch.NotContains: return(!value.Contains(CompareWith)); case HowSearch.StartsWith: return(value.StartsWith(CompareWith)); case HowSearch.EndsWith: return(value.EndsWith(CompareWith)); } return(false); }
public Data(string value, HowSearch howS, DataType type = DataType.Check) { Value = value; howSearch = howS; Type = type; }
/// <summary> /// Contains, /// Equals, /// Starts With /// </summary> /// <param name="searchCriteria"></param> private IWebElement HowSearchInput(string searchCriteria) { HowSearch.Clear(); HowSearch.SendKeys(searchCriteria); return(HowSearch); }