예제 #1
0
 internal static bool Matches(AutomationElement element, UICondition condition)
 {
     Validate.ArgumentNotNull(parameter: condition, parameterName: nameof(condition));
     return(condition.Matches(element: element));
 }
예제 #2
0
 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));
 }