/// <summary>
 /// Find all matching elements in the specified order.
 /// </summary>
 public SHAutomationElement[] FindAllWithOptionsBase(TreeScope treeScope, ConditionBase condition,
                                                     TreeTraversalOption traversalOptions, SHAutomationElement root)
 {
     try
     {
         return(FrameworkAutomationElement.FindAllWithOptions(treeScope, condition, traversalOptions, root));
     }
     catch (System.Runtime.InteropServices.COMException)
     {
         return(Array.Empty <SHAutomationElement>());
     }
 }
Beispiel #2
0
 /// <inheritdoc />
 public AutomationElement[] FindAllWithOptions(TreeScope treeScope, ConditionBase condition,
                                               TreeTraversalOptions traversalOptions, AutomationElement root)
 {
     return(FrameworkAutomationElement.FindAllWithOptions(treeScope, condition, traversalOptions, root));
 }