public UITestControl FindToolboxItemByAutomationId(ToolType tool, string properSearchTerm = "") { var theTerm = tool.GetToolboxName(); if (!string.IsNullOrEmpty(properSearchTerm)) { theTerm = properSearchTerm; } SearchForControl(theTerm); UITestControl theControl = FindControl(tool.GetDescription()); return(theControl); }
public UITestControl FindToolboxItemByAutomationId(ToolType tool, string properSearchTerm = "") { var theTerm = tool.GetToolboxName(); if(!string.IsNullOrEmpty(properSearchTerm)) { theTerm = properSearchTerm; } SearchForControl(theTerm); UITestControl theControl = FindControl(tool.GetDescription()); return theControl; }