Esempio n. 1
0
        public void GivenIWithdrawTheRegistrationAndReactivateIt()
        {
            var uln = scenarionContext["uln"] as string;

            WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click();
            ResultsLearnersResultsPage.ClickHomeBreadcrumb();
            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();

            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
            RegistrationsActiveOptionPage.ClickContinueButton();

            RegistrationsWithdrawRegistrations.WithdrawApplication();
            RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();

            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsWithdrawOptionsPage.ClickReactiveRegistrationRadioButton();
            RegistrationsWithdrawOptionsPage.ClickContinueButton();
            RegistrationReactivateAreYouSurePage.ClickYesRadioButton();
            RegistrationReactivateAreYouSurePage.ClickSubmitButton();
            RegistrationReactivate.ClickViewThisRegistrationButton();
            RegistrationsSearchPage.PressHomeBreadcrumb();

            ResultsDashboardPage.ClickResultsLink();
            ResultsDashboardPage.searchResult(uln);
        }
 public void WhenICancelTheRegistrationAfterNavigatingToTheRegistrationDetailsFromTheChangeNamePage()
 {
     RegistrationChangeNamePage.ClickBackLink();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsActiveOptionPage.YesToCancelReg();
 }
 public void WhenIClickWithdrawRegistrationOnTheActiveOptionsPage()
 {
     RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
 }
        public void GivenINavigateToTheDeleteRegistrationPage()
        {
            var uln = scenarionContext["uln"] as string;

            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton();
            RegistrationsActiveOptionPage.ClickContinueButton();
        }
        public void GivenIAttemptToDeleteTheRegistrationWhichHasIPDataAgainstIt()
        {
            var uln = scenarionContext["uln"] as string;

            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationsActiveOptionPage.ClickDeleteRegistrationRadioButton();
            RegistrationsActiveOptionPage.ClickContinueButton();
        }
Esempio n. 6
0
 public void WhenIWithdrawMyRegistrationStartingOnTheActiveOptionsPage()
 {
     RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
 }
        public void GivenIAttemptToDeleteAnActiveRegistrationWithoutAnActiveResult()
        {
            var uln = scenarionContext["uln"] as string;

            WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click();
            ResultsLearnersResultsPage.ClickHomeBreadcrumb();
            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.DeleteRadioBtn);
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.ContinueBtn);
            RegistrationsActiveOptionPage.YesToCancelReg();
        }
Esempio n. 8
0
 public void WhenIWithdrawMyApplicationAndNavigateToTheWithdrawnRegistrationDetailsPage()
 {
     RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
     RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage();
     RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN");
     RegistrationsSearchPage.VerifyRegistrationDetailsPageSubHeading();
 }
 public void WhenIWithdrawTheRegistrationAndThenReactivateThisRegistrationWithTheSameCourse()
 {
     RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
     RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage();
     RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();
     //RegistrationsSearchPage.ValidateUlnStatusWithdrawn();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsWithdrawOptionsPage.ClickReactiveRegistrationRadioButton();
     RegistrationsWithdrawOptionsPage.ClickContinueButton();
 }
 public void WhenIWithdrawMyApplicationAndNavigateToTheResultsSearchForALearnerPage()
 {
     RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
     RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage();
     RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN");
     RegistrationsSearchPage.PressHomeBreadcrumb();
     ClickLinkByLabel("Results");
     ClickLinkByLabel("Search for a learner");
 }
        public void GivenIAttemptToDeleteAnActiveRegistrationWithoutAnActiveResultHoweverSomeoneElseHasJustAddedAResult()
        {
            var uln = scenarionContext["uln"] as string;

            WebDriver.FindElement(ResultsDashboardPage.BackToResultsBtn).Click();
            ResultsLearnersResultsPage.ClickHomeBreadcrumb();
            RegistrationsPage.ClickRegLink();
            RegistrationsManualPage.ClickSearchForRegistrationLink();
            RegistrationsSearchPage.SearchForULN(uln);
            RegistrationsSearchPage.VerifySearchResultPage();
            RegistrationsSearchPage.ClickChangeStatusLink();
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.DeleteRadioBtn);
            RegistrationDeletePage.ClickElement(RegistrationDeletePage.ContinueBtn);

            int PAID = SqlQueries.RetrievePathwayAssessmentID(uln);

            SqlQueries.CreatePathwayResult(PAID);

            //RegistrationsActiveOptionPage.YesToCancelReg();
        }
Esempio n. 12
0
 public void GivenICreateANewRegistrationWhichISubsequentlyWithdraw()
 {
     SqlQueries.DeleteFromRegistrationTables();
     RegistrationsManualPage.AddNewRegistrations();
     RegistrationsManualPage.CreateRegistrationWithSpecialism(Constants.ManualRegULN, Constants.ManualRegFirstName, Constants.ManualRegLastName, Constants.ManualRegDOBDay, Constants.ManualRegDOBMonth, Constants.ManualRegDOBYear);
     RegistrationsManualPage.ClickSubmit();
     ClickElement(RegistrationsPage.BacktoRegistrationLink);
     ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
     RegistrationsWithdrawRegistrationsSuccess.VerifyWithdrawRegSuccessPage_EntryActiveOptionsPage();
     RegistrationsWithdrawRegistrationsSuccess.ClickViewWithdrawnRegistrationButton();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ValidateUlnStatus("WITHDRAWN");
     RegistrationsSearchPage.VerifyRegistrationDetailsPageSubHeading();
 }
Esempio n. 13
0
 public void WhenIClickTheChangeStatusLinkOnTheWithdrawnOptionsPage()
 {
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsWithdrawOptionsPage.VerifyRegistrationsWithdrawOptionsPage();
     RegistrationsWithdrawOptionsPage.VerifyRadioButtonsNotSelected();
 }
Esempio n. 14
0
 public void WhenIClickTheChangeStatusLink()
 {
     RegistrationsSearchPage.ClickChangeStatusLink();
 }