コード例 #1
0
        /// <summary>
        /// Setting end date to sort calendars
        /// </summary>
        /// <param name="monthtoAdd"></param>
        /// <returns>date what we set calendar on stirng format</returns>
        public string SetEndDatForProgramm(int monthtoAdd)
        {
            AssignProgramPage ProgramPage = new AssignProgramPage(Browser);
            string            assignedDay = ProgramPage.ChoosingEndDate(monthtoAdd, "MM/dd/yyyy");

            return(assignedDay);
        }
コード例 #2
0
        /// <summary>
        /// on this method we are assigning curriculum to the program
        /// </summary>
        /// <param name="browser"></param>
        /// <param name="CurriculumName">curriculum name what we want to assign</param>
        /// <returns></returns>
        public static string CurriculumAssignmentFlow(IWebDriver browser, string CurriculumName)
        {
            CurriculumMngPage CMP = new CurriculumMngPage(browser);

            CMP.Search(CurriculumName);
            CMP.Actioncell.Click();
            AssignProgramPage      Assign       = CMP.ClickToAdvance(CMP.AssignToProgrammLnk);
            string                 StartingDate = Assign.ChoosingStartDate();
            string                 EndingDate   = Assign.ChoosingEndDate(1, "MM/dd/yyyy");
            AssignSummaryPage      Summary      = Assign.ClickToAdvance(Assign.NextBtn);
            AssignConfirmationPage Confirmation = Summary.ClickToAdvance(Summary.NextBtn);
            string                 breadCrumpafterASsignment = Confirmation.GetBreadCrumbContainerText();

            return(breadCrumpafterASsignment);
        }