Exemple #1
0
        public void AddParticipants()
        {
            var workFlowPage    = new WorkFlowPageNavigation(Driver);
            var participantPage = new ParticipantsPage(Driver);

            var firstName = $"AutoTest{DateTime.Now.ToString("ddmmyy")}";
            var lastName  = $"AutoTest{DateTime.Now.ToString("ddmmyy")}";

            workFlowPage
            .GoToWorkFlowPage(/*Configuration.GetSection("NewUserEmail").Value, Configuration.GetSection("NewUserPassword").Value*/)
            .GoToAppropriateClosingFile()
            .ClickDetailsMenuItem();
            participantPage
            .ClickParticipantsSideMenuItem()
            .ChooseOriginator()
            .ChooseReferralSource()
            .ChooseReferralSource()
            .TypeFirstName(firstName)
            .TypeLastName(lastName)
            .ClickSaveButton();

            //Assert.Multiple(() =>
            //{
            //    Assert.AreEqual();
            //    Assert.AreEqual();
            //});
        }
Exemple #2
0
        /// <summary>
        /// Searches for a user-specified site, clicks on that site, clicks on the All Particpants link, searches for a user-specified participant,
        /// clicks on the participant, clicks on the Programs tab of the particpant, then clicks on a user-specified program and waits for that program page
        /// to load
        /// </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="program">The exact text of the program inside programs table that you want to click on</param>
        /// <returns></returns>
        public ProgramPage GoToParticipantProgramPage(IWebDriver browser, string siteName, string participantFirstAndLastName, string program)
        {
            ParticipantsPage PAP = GoToParticipantPage(browser, siteName, participantFirstAndLastName);

            PAP.ClickAndWait(PAP.ProgramsTab);

            return(PAP.ClickProgramAndWait(browser, program));
        }
Exemple #3
0
        public void ThenShouldBeAbleToSort(string headerName)
        {
            participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
            var list = participants.GetSortedList(headerName);

            list.Should().BeInAscendingOrder();
            list = participants.GetSortedList(headerName);
            list.Should().BeInDescendingOrder();
        }
Exemple #4
0
        /// <summary>
        /// Goes to the Participant page if we are not already there, clicks on the Programs tab of the Participants, clcks Actions>Adjust
        /// Dates link for the Maintenance Of Certification program,fills in a user-specified start or end date, then clicks the Yes button
        /// </summary>
        /// <param name="browser">The driver instance</param>
        /// <param name="participantFirstAndLastName">The exact text of the participant inside participants table that you want to click on</param>
        /// <param name="startOrEndDate">"Start" or "End"</param>
        /// <param name="date">The date to enter, in the format "yyyy-mm-dd"</param>
        /// ToDo: Make this more universal by putting the Site name as a parameter, then refactoring this method and code which calls this method
        public void RCP_AdjustMOCDate(IWebDriver browser, string participantFirstAndLastName, string startOrEndDate, string date)
        {
            ParticipantsPage PAP = new ParticipantsPage(browser);

            // If we are not on the participant page, then go there
            if (browser.FindElements(Bys.ParticipantsPage.RegeneratePasswordTab).Count == 0)
            {
                GoToParticipantPage(browser, "Royal College of Physicians", participantFirstAndLastName);
            }

            PAP.AdjustProgramCycleDates(startOrEndDate, date);
        }
Exemple #5
0
 public void ThenIShouldBeAbleToSeeColumnSSN()
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.GetSSNDisplayed().Should().BeTrue();
 }
Exemple #6
0
 public void WhenIClickOnRowExpandButton()
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.clickOnRowExpandButton();
 }
Exemple #7
0
 public void ThenBreadcrumbShouldBeDisplayed()
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.GetBreadcrumb().Should().BeTrue();
 }
Exemple #8
0
 public void WhenIClickOnFilter()
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.ClickOnFilter();
 }
Exemple #9
0
 public void ThenHeaderShouldBeDisplayed(string header)
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.GetHeaderName().Should().Contain(header);
 }
Exemple #10
0
 public void ThenPageCountShouldBeDisplayed()
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.GetPageCount().Should().NotBeNullOrEmpty();
     TestsLogger.Log(string.Format("Claims count is [{0}]", participants.GetPageCount()));
 }
Exemple #11
0
 public void ThenIShouldBeAbleToSeeColumnDRIVERSLICENSE()
 {
     participants = ((ParticipantsPage)GetSharedPageObjectFromContext("Participants"));
     participants.GetDriversLicenseDisplayed().Should().BeTrue();
 }