/// <summary>
 /// Finds the first matching element in the specified order.
 /// </summary>
 public SHAutomationElement FindFirstWithOptionsBase(TreeScope treeScope, ConditionBase condition,
                                                     TreeTraversalOption traversalOptions, SHAutomationElement root)
 {
     try
     {
         return(FrameworkAutomationElement.FindFirstWithOptions(treeScope, condition, traversalOptions, root));
     }
     catch (System.Runtime.InteropServices.COMException)
     {
         return(null);
     }
 }
예제 #2
0
 /// <inheritdoc />
 public AutomationElement FindFirstWithOptions(TreeScope treeScope, ConditionBase condition,
                                               TreeTraversalOptions traversalOptions, AutomationElement root)
 {
     return(FrameworkAutomationElement.FindFirstWithOptions(treeScope, condition, traversalOptions, root));
 }