public LearnerRequestObsObject SearchAndSelectObserverAndTemplateOnRequestObservationForm(string observerName, string templateName)
        {
            RequestObsFormObsNameTxt.SendKeys(observerName);
            ClickAndWait(RequestObsFormSearchBtn);

            ElemSet.RdoBtn_ClickByText(Browser, observerName);
            ElemSet.RdoBtn_ClickByText(Browser, templateName);

            return(new LearnerRequestObsObject(observerName, templateName));
        }
Пример #2
0
        public LearnerRequestObsObject SearchAndSelectObserverAndTemplateOnRequestObservationForm(string observerName, string templateName)
        {
            RequestObsFormObsNameTxt.SendKeys(observerName);
            // Mike Johnston 1/25/18: Test failed this morning. On screenshot, the text was entered just fine, but it looks like the search button was
            // not clicked, because ALL observers showed in the list. Maybe it clicks Search too quickly after text entry. I am going to add a small
            // sleep here. Monitor going forward. Also see notes inside ClickAndWait(RequestObsFormSearchBtn);
            Thread.Sleep(0200);
            ClickAndWait(RequestObsFormSearchBtn);

            ElemSet.RdoBtn_ClickByText(Browser, observerName);
            ElemSet.RdoBtn_ClickByText(Browser, templateName);

            return(new LearnerRequestObsObject(observerName, templateName));
        }