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);
        }
Esempio n. 2
0
 public void WhenIWithdrawMyRegistrationStartingOnTheActiveOptionsPage()
 {
     RegistrationsPage.ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     RegistrationsSearchPage.SearchForULN();
     RegistrationsSearchPage.VerifySearchResultPage();
     RegistrationsSearchPage.ClickChangeStatusLink();
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
 }
Esempio n. 3
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");
 }
Esempio n. 6
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();
 }
 public void WhenISelectYesWithdrawRegistration()
 {
     RegistrationsWithdrawRegistrations.WithdrawApplication();
 }
 public void ThenIWillBeShownAnErrorOnTheWithdrawRegistrationPageStating(string ErrorMessage)
 {
     RegistrationsWithdrawRegistrations.ErrorMessage_RadioButtonsNotSelected(ErrorMessage);
 }
 public void WhenIPressSubmitButtonWithoutSelectingAnyRadioButtons()
 {
     RegistrationsWithdrawRegistrations.ClickSubmitButton();
 }
 public void WhenISelectNoDoNotWithdrawRegistration()
 {
     RegistrationsWithdrawRegistrations.DoNotWithdrawApplication();
 }
 public void WhenIClickTheBackLink()
 {
     RegistrationsWithdrawRegistrations.ClickBackLink();
 }
 public void ThenIWillBeDirectedToTheAreYouSureYouWantToWithdrawThisPage()
 {
     RegistrationsWithdrawRegistrations.VerifyWithdrawRegistrationPage();
     RegistrationsWithdrawRegistrations.VerifyRadioButtonsNotSelected();
 }
 public void WhenIWithdrawTheRegistrationFromTheTheActiveOptionsPageForActiveRecord()
 {
     RegistrationsActiveOptionPage.ClickWithdrawRadioButton();
     RegistrationsActiveOptionPage.ClickContinueButton();
     RegistrationsWithdrawRegistrations.WithdrawApplication();
 }