/// <summary> /// Logs in as a trainee, selects "Needs Additional Information" in the Status drop down, clicks on the user-specified milestone, enters the user-specified /// text into the "Your Reply" text box, clicks Save, goes back to the Dashboard, then logs out /// </summary> /// <param name="browser">The driver instance</param> /// <param name="milestoneName">The milestone name as it appears in the text of the HTML elementThe exact text of the milestone inside the milestone table</param> /// <param name="additionalInfoText">The text you want to enter for the requested or submitted additional infoThe text of your choice</param> public static void AsTrainee_SendAdditionalInfo(IWebDriver browser, string traineeLogin, string milestoneName, string additionalInfoText) { LoginPage LP = Navigation.GoToLoginPage(browser); PERTraineePage TP = LP.LoginAsExistingUser(UserUtils.UserRole.TraineePER, traineeLogin, "test"); TP.SubmitAdditionalInfo(milestoneName, additionalInfoText); TP.Logout(); }
/// <summary> /// Logs in as a trainee, clicks on each milestone, uploads a document, saves and completes the milestone, /// submits the portfolio to the Credential Staff user, then logs out /// </summary> /// <param name="browser">The driver instance</param> /// <param name="traineeLogin">The trainee's username</param> /// <returns>A list of all milestones</returns> public static List <string> AsTrainee_CompleteAllMilestones_ThenSubmitPortfolio(IWebDriver browser, string traineeLogin) { LoginPage LP = Navigation.GoToLoginPage(browser); PERTraineePage TP = LP.LoginAsNewUser(UserUtils.UserRole.TraineePER, traineeLogin, "test"); List <string> milestoneNames = TP.CompleteAllMilestones(); TP.SubmitPortfolio(); TP.Logout(); return(milestoneNames); }