示例#1
0
        public Locator(WhereFind where, LocatorProperty property)
        {
            var prop = property;

            _condition = prop.ToAndCondition();
            Where      = where;
            Properties = new List <LocatorProperty>()
            {
                prop
            };
        }
示例#2
0
        public Locator(WhereFind where, string name = null, string automationId = null, string className = null,
                       ControlType controlType      = default(ControlType))
        {
            var prop = new LocatorProperty
            {
                Name         = name,
                AutomationId = automationId,
                ClassName    = className,
                ControlType  = controlType
            };

            _condition = prop.ToAndCondition();
            Where      = where;
            Properties = new List <LocatorProperty>()
            {
                prop
            };
        }
示例#3
0
 /// <summary>
 /// Implement or properties
 /// </summary>
 /// <param name="Properties"></param>
 public Locator(WhereFind where, params LocatorProperty[] orProperties)
 {
     Properties = orProperties.ToList();
     Where      = where;
 }