예제 #1
0
 public SelectElement(Automation.Core.SelectList element)
     : base(element)
 {
     _element = element;
 }
예제 #2
0
 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);
         }
     }
 }
예제 #3
0
 public Element(Automation.Core.Element element)
 {
     _element = element;
 }