예제 #1
0
 public Data(string prop, string value, HowSearch howS = HowSearch.ExactMatch, DataType type = DataType.Check)
 {
     Value     = value;
     Prop      = prop;
     howSearch = howS;
     Type      = type;
 }
예제 #2
0
        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);
        }
예제 #3
0
 public Data(string value, HowSearch howS, DataType type = DataType.Check)
 {
     Value     = value;
     howSearch = howS;
     Type      = type;
 }
예제 #4
0
 /// <summary>
 /// Contains,
 /// Equals,
 /// Starts With
 /// </summary>
 /// <param name="searchCriteria"></param>
 private IWebElement HowSearchInput(string searchCriteria)
 {
     HowSearch.Clear();
     HowSearch.SendKeys(searchCriteria);
     return(HowSearch);
 }