/// <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); }
/// <summary> /// Clicks on the Portfolios Under Review tab, clicks on the Assign Reviewer button for a user-specified trainee, assigns 2 assessors, /// clicks the Submit button on the confirmation popup window /// </summary> /// <param name="traineeFullName"></param> public void AssignReviewer(string traineeFullName, string assessor1FullName, string assessor2FullName) { ClickAndWait(PortfoliosUnderReviewTab); ElemSet.Grid_ClickButtonOrLinkWithinRow(Browser, PortfoliosUnderReviewTbl, Bys.DiplomaCredentialStaffPage.PortfoliosUnderReviewTblFirstRow, traineeFullName, "a", "Assign Reviewer", "button"); this.WaitUntil(Criteria.DiplomaCredentialStaffPage.AssignAssessor2AssFormSubmitBtnVisible); this.WaitUntil(TimeSpan.FromSeconds(60), Criteria.DiplomaCredentialStaffPage.AssignAssessor2AssFormFirstAssSelElemVisible); Thread.Sleep(1000); ElemSet.ScrollToSelectElement(Browser, AssignAssessor2AssFormFirstAssSelElem); AssignAssessor2AssFormFirstAssSelElem.SelectByText(assessor1FullName); AssignAssessor2AssFormSecondAssSelElem.SelectByText(assessor2FullName); ClickAndWait(AssignAssessor2AssFormSubmitBtn); }