/// <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); } }
/// <inheritdoc /> public AutomationElement FindFirstWithOptions(TreeScope treeScope, ConditionBase condition, TreeTraversalOptions traversalOptions, AutomationElement root) { return(FrameworkAutomationElement.FindFirstWithOptions(treeScope, condition, traversalOptions, root)); }