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);
        }
Esempio n. 2
0
        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;
        }