Ejemplo n.º 1
0
        /// <summary>
        /// Clicks on the Assessors tab if we are not already there, clicks the Assign Third Assessor button for a user-specified trainee, chooses
        /// a user-specified assessor, then clicks the Submit button
        /// </summary>
        /// <param name="traineeFullName">The trainee's first and last nameThe exact text of the trainee from the Trainee column inside the Trainee table on the Referee tab</param>
        /// <param name="assessor3FullName">The first and last name of the assessor</param>
        public void Assign3rdAssessor(string traineeFullName, string assessor3FullName)
        {
            ClickAndWait(AssessorTab);

            ElemSet.Grid_ClickButtonOrLinkWithinRow(Browser, AssessorTabTraineeTbl, Bys.PERCredentialStaffPage.AssessorTabTraineeTblFirstRow,
                                                    traineeFullName, "a", "Assign Third Assessor", "button");

            this.WaitUntil(TimeSpan.FromMinutes(1), Criteria.PERCredentialStaffPage.AssignAssessor3rdAssFormThirdAssSelElemHasItemsIsVisible);
            Thread.Sleep(0200);

            AssignAssessor3rdAssFormThirdAssSelElem.SelectByText(assessor3FullName);

            ClickAndWait(AssignAssessor3rdAssFormSubmitBtn);
        }
        /// <summary>
        /// Clicks on the Assessors tab if we are not already there, clicks the Assign Third Assessor button for a user-specified trainee, chooses
        /// a user-specified assessor, then clicks the Submit button
        /// </summary>
        /// <param name="traineeFullName">The trainee's first and last nameThe exact text of the trainee from the Trainee column inside the Trainee table on the Referee tab</param>
        /// <param name="assessor3FullName">The first and last name of the assessor</param>
        public void Assign3rdAssessor(string traineeFullName, string assessor3FullName)
        {
            ClickAndWait(AssessorTab);

            ElemSet.Grid_ClickButtonOrLinkWithinRow(Browser, AssessorTbl, Bys.DiplomaCredentialStaffPage.AssessorTblFirstRow,
                                                    traineeFullName, "a", "Assign Third Assessor", "span");

            this.WaitUntil(Criteria.DiplomaCredentialStaffPage.AssignAssessor3rdAssFormSubmitBtnVisible);
            this.WaitUntil(TimeSpan.FromSeconds(60), Criteria.DiplomaCredentialStaffPage.AssignAssessor3rdAssFormThirdAssSelElemVisible);
            Thread.Sleep(0200);

            ElemSet.ScrollToSelectElement(Browser, AssignAssessor3rdAssFormThirdAssSelElem);
            AssignAssessor3rdAssFormThirdAssSelElem.SelectByText(assessor3FullName);

            ClickAndWait(AssignAssessor3rdAssFormSubmitBtn);
        }