Esempio n. 1
0
        /// <summary>
        /// Logs in as a director, clicks the user-specified trainee in the Portfolios Under Review table, clicks on the milestone links in the Milestone table,
        /// clicks on the Request Additional Information button, enters text into the Comments field, clicks the Submit button, logs out
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="traineeFullName">The trainee's first and last name</param>
        /// <param name="milestoneName">The milestone name as it appears in the text of the HTML element</param>
        /// <param name="additionalInfoText">The text you want to enter for the requested or submitted additional info</param>
        public static void AsDD_RequestAdditionalInfo(IWebDriver browser, string diplomaDirectorLogin, string traineeFullName, string requestedMilestone)
        {
            LoginPage           LP = Navigation.GoToLoginPage(browser);
            DiplomaDirectorPage DD = LP.LoginAsExistingUser(UserUtils.UserRole.DDDiploma, diplomaDirectorLogin, "test");

            DD.RequestAdditionalInfo(traineeFullName, requestedMilestone, "This is the requested additional info text");
            DD.Logout();
        }
Esempio n. 2
0
        /// <summary>
        /// Logs in as the diploma director, checks the check box in the Portfolios Under Review tab for a user-specified trainee, clicks the Mark Selected
        /// Portfolio as Achieved button, checks the I Attest check box on the Mark Selected Portfolios as Achieved form, clicks Submbit, then logs out
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="diplomaDirectorLogin"></param>
        /// <param name="traineeFullName">trainee first and last name</param>
        public static void AsDD_MarkPortfolioAsAchieved(IWebDriver browser, string diplomaDirectorLogin, string traineeFullName)
        {
            LoginPage           LP = Navigation.GoToLoginPage(browser);
            DiplomaDirectorPage DD = LP.LoginAsExistingUser(UserUtils.UserRole.DDDiploma, diplomaDirectorLogin, "test");

            DD.MarkPortfolioAchieved(traineeFullName);
            DD.Logout();
        }