Exemplo n.º 1
0
        /// <summary>
        /// Changes any of the cells inside the Agenda table for a user-specified learner
        /// </summary>
        /// <param name="learnerFullName">The exact text from the cell that your learner exists within</param>
        /// <param name="reviewed">The exact text from one of the items in the select element from the Review column in the Agenda table. Enter null if you dont want this to be changed</param>
        /// <param name="agendaPriority">The exact text from one of the items in the select element from the Agenda Priority column in the Agenda table. Enter null if you dont want this to be changed</param>
        /// <param name="presenter">The exact text from one of the items in the select element from the Presenter column in the Agenda table. Enter null if you dont want this to be changed</param>
        /// <param name="learnerStatus">The exact text from one of the items in the Learner Status select element from the Set Status window. Enter null if you dont want this to be changed</param>
        /// <param name="actions">The exact text from one of the items in the Actions select element from the Set Status window. Enter null if you dont want this to be changed</param>
        public void ModifyLearnerForAgenda(string learnerFullName, string reviewed, string agendaPriority, string presenter, string learnerStatus, string actions)
        {
            if (reviewed != null)
            {
                ElemSet.Grid_ClickButtonOrLinkWithinRow(Browser, AgendaTbl, Bys.CBDProgDirectorPage.AgendaTbl, learnerFullName, null, "Not Reviewed");
                Thread.Sleep(0300);
                ElemSet.Grid_SelectItemWithinSelElem(AgendaTbl, Bys.CBDProgDirectorPage.AgendaTbl, learnerFullName, null, "ReviewStatus", reviewed);
                this.WaitUntilAll(Criteria.CBDProgDirectorPage.LoadElementClassAttributeSetToHide, Criteria.CBDProgDirectorPage.LoadElementDisappeared);
            }

            if (agendaPriority != null)
            {
                ElemSet.Grid_SelectItemWithinSelElem(AgendaTbl, Bys.CBDProgDirectorPage.AgendaTbl, learnerFullName, null, "Priority", agendaPriority);
                this.WaitUntilAll(Criteria.CBDProgDirectorPage.LoadElementClassAttributeSetToHide, Criteria.CBDProgDirectorPage.LoadElementDisappeared);
            }

            if (presenter != null)
            {
                ElemSet.Grid_SelectItemWithinSelElem(AgendaTbl, Bys.CBDProgDirectorPage.AgendaTbl, learnerFullName, null, "Presenter", presenter);
                this.WaitUntilAll(Criteria.CBDProgDirectorPage.LoadElementClassAttributeSetToHide, Criteria.CBDProgDirectorPage.LoadElementDisappeared);
            }

            if (learnerStatus != null)
            {
                SetStatusOfLearner(learnerFullName, learnerStatus, actions);
            }
        }