public static SearchCriteria ByControlType(Type testControlType, WindowsFramework framework) { var searchCriteria = new SearchCriteria(SearchConditionFactory.CreateForControlType(testControlType, framework)); searchCriteria.InferCustomItemType(testControlType); return(searchCriteria); }
public static SearchCriteria ByNativeProperty(PropertyId automationProperty, bool value) { return(new SearchCriteria(SearchConditionFactory.CreateForNativeProperty(automationProperty, value))); }
public static SearchCriteria ByControlType(ControlType controlType) { return(new SearchCriteria(SearchConditionFactory.CreateForControlType(controlType))); }
public static SearchCriteria ByFramework(string framework) { return(new SearchCriteria(SearchConditionFactory.CreateForFrameworkId(framework))); }
public static SearchCriteria ByAutomationId(string identification) { return(new SearchCriteria(SearchConditionFactory.CreateForAutomationId(identification))); }
/// <summary> /// Create a SearchCriteria with text /// </summary> /// <param name="text">For managed applications this is name given to controls in the application code. /// For unmanaged applications this is text of the control or label next to it if it doesn't have well defined text.</param> /// <returns></returns> public static SearchCriteria ByText(string text) { return(new SearchCriteria(SearchConditionFactory.CreateForName(text))); }
internal static SearchCriteria ForMenuBar(WindowsFramework framework) { var searchCriteria = new SearchCriteria(SearchConditionFactory.CreateForControlType(typeof(MenuBar), framework)); return(searchCriteria.NotIdentifiedByText("System Menu Bar")); }
public virtual SearchCriteria AndNativeProperty(PropertyId automationProperty, object value) { conditions.Insert(0, SearchConditionFactory.CreateForNativeProperty(automationProperty, value)); return(this); }
public virtual SearchCriteria AndAutomationId(string id) { conditions.Insert(0, SearchConditionFactory.CreateForAutomationId(id)); return(this); }
public virtual SearchCriteria AndControlType(ControlType controlType) { conditions.Insert(0, SearchConditionFactory.CreateForControlType(controlType)); return(this); }
public virtual SearchCriteria AndControlType(Type testControlType, WindowsFramework framework) { InferCustomItemType(testControlType); conditions.Insert(0, SearchConditionFactory.CreateForControlType(testControlType, framework)); return(this); }
public virtual SearchCriteria NotIdentifiedByText(string name) { conditions.Insert(0, new NotCondition(SearchConditionFactory.CreateForName(name))); return(this); }
public virtual SearchCriteria AndOfFramework(WindowsFramework framework) { conditions.Insert(0, SearchConditionFactory.CreateForFrameworkId(framework.FrameworkId())); return(this); }
public virtual SearchCriteria AndByClassName(string className) { conditions.Insert(0, SearchConditionFactory.CreateForClassName(className)); return(this); }
public virtual SearchCriteria AndByText(string text) { conditions.Insert(0, SearchConditionFactory.CreateForName(text)); return(this); }
public static SearchCriteria ByClassName(string className) { return(new SearchCriteria(SearchConditionFactory.CreateForClassName(className))); }