public Locator(WhereFind where, LocatorProperty property) { var prop = property; _condition = prop.ToAndCondition(); Where = where; Properties = new List <LocatorProperty>() { prop }; }
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 }; }
/// <summary> /// Implement or properties /// </summary> /// <param name="Properties"></param> public Locator(WhereFind where, params LocatorProperty[] orProperties) { Properties = orProperties.ToList(); Where = where; }