internal static bool Matches(AutomationElement element, UICondition condition) { Validate.ArgumentNotNull(parameter: condition, parameterName: nameof(condition)); return(condition.Matches(element: element)); }
public static bool Matches(UIObject uiObject, UICondition condition) { Validate.ArgumentNotNull(parameter: uiObject, parameterName: nameof(uiObject)); Validate.ArgumentNotNull(parameter: condition, parameterName: nameof(condition)); return(condition.Matches(element: uiObject.AutomationElement)); }