public SelectElement(Automation.Core.SelectList element)
     : base(element)
 {
     _element = element;
 }
 private void ValidateElement(Automation.Core.Element element, string fieldSelector, MatchConditions conditions)
 {
     if (conditions.HasFlag(MatchConditions.Visible))
     {
         if (element.Style.Display.ToLower().Contains("none") || element.Style.GetAttributeValue("visibility") == "hidden")
         {
             throw new MatchConditionException(fieldSelector, MatchConditions.Visible);
         }
     }
     else if (conditions.HasFlag(MatchConditions.Hidden))
     {
         if (!element.Style.Display.ToLower().Contains("none") && !(element.Style.GetAttributeValue("visibility") == "visible"))
         {
             throw new MatchConditionException(fieldSelector, MatchConditions.Hidden);
         }
     }
 }
Exemple #3
0
 public Element(Automation.Core.Element element)
 {
     _element = element;
 }