Exemple #1
0
 public static void CreateRegistrationWithoutSpecialism(string uln)
 {
     RegistrationsPage.ClickRegLink();
     AddRegistrations();
     VerifyUlnPage();
     EnterUln(uln);
     ClickContiune();
     VerifyLearnersPage();
     EnterLearnerName("FirstName1", "LastName1");
     ClickContiune();
     VerifyDobPage();
     EnterDob("01", "01", "2010");
     ClickContiune();
     VerifyProviderPage();
     SelectProviderFromList(InputPovider);
     ClickContiune();
     VerifyCorePage();
     SelectCoreFromList(InputCore);
     ClickContiune();
     VerifySpecialismDecidePage();
     ClickElement(DecideNo);
     ClickContiune();
     VerifyAcademicYearPage();
     ClickContiune();
     VerifyRegistrationSummaryPage();
     ClickSubmit();
     ClickBackToRegistrations();
 }
 public static void CreateWithdrawnReg()
 {
     RegistrationsPage.ClickRegLink();
     RegistrationsManualPage.AddRegistrations();
     RegistrationsManualPage.EnterUln("9900000001");
     RegistrationsManualPage.ClickContiune();
     RegistrationsManualPage.EnterLearnerName("FirstName1", "LastName1");
     RegistrationsManualPage.ClickContiune();
     RegistrationsManualPage.EnterDob("01", "01", "2010");
     RegistrationsManualPage.ClickContiune();
     RegistrationsManualPage.SelectProviderFromList("Automation Test2 (99999902)");
     RegistrationsManualPage.ClickContiune();
     RegistrationsManualPage.SelectCoreFromList("Legal, Finance and Accounting (55555555)");
     RegistrationsManualPage.ClickContiune();
     ClickElement(RegistrationsManualPage.DecideYes);
     RegistrationsManualPage.ClickContiune();
     ClickElement(By.XPath("//label[contains(text(),'Legal')]"));
     RegistrationsManualPage.ClickContiune();
     RegistrationsManualPage.ClickContiune();
     RegistrationsManualPage.ClickSubmit();
     RegistrationsManualPage.ClickBackToRegistrations();
     ClickElement(RegistrationsSearchPage.SearchRegistrationLink);
     EnterText(RegistrationsSearchPage.SearchBox, "9900000001");
     ClickElement(RegistrationsSearchPage.SearchBtn);
     VerifyRegDetails();
     ClickElement(ChangeStatusLink);
     ClickElement(ReactivateRegistration);
     ClickElement(ContinueBtn);
     ClickElement(WithdrawConfirmYes);
     ClickElement(SubmitBtn);
     ClickElement(ViewWithdrawReg);
     VerifyRegDetails();
 }
Exemple #3
0
 public static void AddNewRegistrations()
 {
     RegistrationsPage.ClickRegLink();
     ClickElement(AddRegistrationLink);
 }