/// <summary> /// Logs in as the Credential Staff user, 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 third assessor, clicks the Submit button, then logs out /// </summary> /// <param name="browser">The driver instance</param> /// <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 static void AsCredentialStaff_AssignTraineeTo3rdAssessor(IWebDriver browser, string traineeFullName, string thirdAssessorFullName) { LoginPage LP = Navigation.GoToLoginPage(browser); PERCredentialStaffPage CP = LP.LoginAsExistingUser(UserUtils.UserRole.CUPER, UserUtils.CredentialStaffPERLogin, "password"); CP.Assign3rdAssessor(traineeFullName, thirdAssessorFullName); CP.Logout(); }
/// <summary> /// Logs in as the Credential Staff user, clicks on the Assessors tab if we are not already there, clicks the Make Final Review button for a /// user-specified trainee, clicks on either the Achieved or Not Achieved radio button, enters text into Request Comments field, clicks /// the Submit button, then logs out /// </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 Assessor tab</param> /// <param name="achieved">true or false depending on if you want to achieve the trainee or not</param> public static void AsCredentialStaff_MarkTraineeAsAchievedOrNotAchieved(IWebDriver browser, string traineeFullName, bool achieved) { LoginPage LP = Navigation.GoToLoginPage(browser); PERCredentialStaffPage CP = LP.LoginAsExistingUser(UserUtils.UserRole.CUPER, UserUtils.CredentialStaffPERLogin, "password"); CP.MakeFinalReview(traineeFullName, achieved); CP.Logout(); }
/// <summary> /// Logs in as as the Credential Staff user, clicks on the Referees tab if we are not already there, clicks the Assign Referees button for a /// user-specified trainee, chooses a user-specified first and second referee, clicks the Submit button, then logs out /// </summary> /// <param name="traineeFullName">The trainee's first and last name. The exact text of the trainee from the Trainee column inside the Trainee table on the Referee tab</param> /// <param name="referee1FullName">The first and last name of the referee</param> /// <param name="referee2FullName">The first and last name of the referee</param> public static void AsCredentialStaff_AssignTraineeTo1stAnd2ndRefs(IWebDriver browser, string traineeFullName, string firstRefereeFullName, string secondRefereeFullName) { LoginPage LP = Navigation.GoToLoginPage(browser); PERCredentialStaffPage CP = LP.LoginAsExistingUser(UserUtils.UserRole.CUPER, UserUtils.CredentialStaffPERLogin, "password"); CP.AssignReferees(traineeFullName, firstRefereeFullName, secondRefereeFullName); CP.Logout(); }