Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="numberOfCreditsToWaitFor"></param>
        public void WaitForProgramCreditsWindowsService(IWebDriver browser, string numberOfCreditsToWaitFor)
        {
            ProgramPage PP = new ProgramPage(browser);

            PP.ClickAndWait(PP.DetailsTab);
            ApplicationUtils.WaitForCreditsToBeApplied(PP, Bys.ProgramPage.DetailsTabCreditsValueLbl, numberOfCreditsToWaitFor);
        }
Example #2
0
        /// <summary>
        /// Goes to the Participant Program page if we are not already there, clicks on the the Self Reporting tab, clicks the
        /// Actions>Validate link for a user-specified activity, waits for the Credit Validation page to appear, clicks the Accept radio
        /// button, clicks the Submit button, and waits for the page be done loading
        /// </summary>
        /// <param name="browser">The driver instance</param>
        /// <param name="siteName">The exact text of the site inside sites table that you want to click on</param>
        /// <param name="participantFirstAndLastName">The exact text of the participant inside the participants table that you want to click on</param>
        /// <param name="program">The exact text of the program inside the programs table that you want to click on</param>
        /// <param name="activityName">The exact text of the activity inside the Self Reported Activities table table that you want to click on</param>
        public void ValidateCredit(IWebDriver browser, string siteName, string participantFirstAndLastName, string program, string activityName)
        {
            ProgramPage PP = new ProgramPage(browser);

            // If we are not on the participant program page, then go there
            if (browser.FindElements(Bys.ProgramPage.SelfReportActTab).Count == 0)
            {
                GoToParticipantProgramPage(browser, siteName, participantFirstAndLastName, program);
            }

            PP.ChooseActivityAndValidateCredi(activityName);
        }
Example #3
0
        /// <summary>
        /// Clicks on the Details tab of the Program page and then returns the Status label value from the details tab on the Program page
        /// </summary>
        /// <param name="browser">The driver instance</param>
        /// <param name="detail">The name of the label on the Detail tab for which you want the value to return</param>
        /// <returns></returns>
        public string GetProgramDetail(IWebDriver browser, string detail)
        {
            ProgramPage PP = new ProgramPage(browser);

            return(PP.GetProgramDetail(browser, detail));
        }
Example #4
0
        /// <summary>
        /// Clicks the Add Adjustment tab if we are not already there, clicks the Add Adjustment link, chooses an Adjustment Code from
        /// the select element, enters an effective date (this overload is for the reinstated, per program, pra program, voluntary program,
        /// international program, main program and resident program program adjustments). Then clicks the Add Adjustment buttons
        /// </summary>
        /// <param name="browser">The driver instance</param>
        /// <param name="siteName">The exact text of the site inside sites table that you want to click on</param>
        /// <param name="participantFirstAndLastName">The exact text of the participant inside participants table that you want to click on</param>
        /// <param name="adjustmentCode">The exact text of the adjustment code that you want to chooose in the Adjustment Code select element</param>
        /// <param name="effectiveDate"></param>
        public void RCP_AddProgramAdjustment(IWebDriver browser, string participantFirstAndLastName, LSConstants.AdjustmentCodes adjustmentCode, string effectiveDate)
        {
            ProgramPage PP = new ProgramPage(browser);

            PP.AddProgramAdjustment(adjustmentCode, effectiveDate);
        }
Example #5
0
        /// <summary>
        /// Clicks the Add Adjustment tab if we are not already there, clicks the Add Adjustment link, chooses an Adjustment Code
        /// from the select element, enters a start and end date, selects a leave code (this overload is for the Leave program adjustment).
        /// Then clicks the Add Adjustment button
        /// </summary>
        /// <param name="browser">The driver instance</param>
        /// <param name="siteName">The exact text of the site inside sites table that you want to click on</param>
        /// <param name="participantFirstAndLastName">The exact text of the participant inside participants table that you want to click on</param>
        /// <param name="adjustmentCode">The exact text of the adjustment code that you want to chooose in the Adjustment Code select element</param>
        /// <param name="leaveStartDate"></param>
        /// <param name="leaveEndDate"></param>
        /// <param name="leaveCode"></param>
        public void RCP_AddProgramAdjustment(IWebDriver browser, string participantFirstAndLastName, LSConstants.AdjustmentCodes adjustmentCode, string leaveStartDate, string leaveEndDate, string leaveCode)
        {
            ProgramPage PP = new ProgramPage(browser);

            PP.AddProgramAdjustment(adjustmentCode, leaveStartDate, leaveEndDate, leaveCode);
        }