public OrganisationTasklist() { // arrange d = new DriverFactory(); driver = d.CreateDriver(); loginPage = new LoginPage(driver); homePage = new HomePage(driver); typeOfBusinessPage = new TypeOfBusinessPage(driver); unsupportedBusinessTypePage = new UnsupportedBusinessTypePage(driver); tasklistPage = new REG.Automation.Pages.Organisation.TasklistPage(driver); serviceLocationPage = new ServiceLocationPage(driver); serviceTypeOwnHomePage = new ServiceTypeOwnHomePage(driver); serviceTypeAdaptedAccommodationPage = new ServiceTypeAdaptedAccommodationPage(driver); confirmTaxonomyPage = new ConfirmTaxonomyPage(driver); organisationNamePage = new OrganisationNamePage(driver); registrationHistoryPage = new RegistrationHistoryPage(driver); businessSetupPage = new BusinessSetupPage(driver); checkYourAnswersPage = new CheckYourAnswersPage(driver); HttpClientHelper.ClearUserData($"***REMOVED***"); loginPage.Login(d.Url); homePage.ApplyOnline(); typeOfBusinessPage.SelectAndContinue(typeOfBusinessPage.OrganisationOption); serviceLocationPage.SelectAllAndContinue(); serviceTypeOwnHomePage.SelectAllAndContinue(); serviceTypeAdaptedAccommodationPage.SelectAllAndContinue(); confirmTaxonomyPage.Continue(); }
public OrganisationDetails() { // arrange d = new DriverFactory(); driver = d.CreateDriver(); loginPage = new LoginPage(driver); homePage = new HomePage(driver); typeOfBusinessPage = new TypeOfBusinessPage(driver); tasklistPage = new REG.Automation.Pages.Organisation.TasklistPage(driver); serviceLocationPage = new ServiceLocationPage(driver); serviceTypeOwnHomePage = new ServiceTypeOwnHomePage(driver); serviceTypeAdaptedAccommodationPage = new ServiceTypeAdaptedAccommodationPage(driver); confirmTaxonomyPage = new ConfirmTaxonomyPage(driver); organisationNamePage = new OrganisationNamePage(driver); registrationHistoryPage = new RegistrationHistoryPage(driver); businessSetupPage = new BusinessSetupPage(driver); checkYourAnswersPage = new CheckYourAnswersPage(driver); companyCharityNumberPage = new CompanyCharityNumberPage(driver); tradingNamesPage = new TradingNamesPage(driver); contactDetailsPage = new ContactDetailsPage(driver); registeredAddressPage = new RegisteredAddressPage(driver); businessDependenciesPage = new BusinessDependenciesPage(driver); insolvencyPage = new InsolvencyPage(driver); HttpClientHelper.ClearUserData($"***REMOVED***"); loginPage.Login(d.Url); homePage.ApplyOnline(); typeOfBusinessPage.SelectAndContinue(typeOfBusinessPage.OrganisationOption); serviceLocationPage.SelectAllAndContinue(); serviceTypeOwnHomePage.SelectAllAndContinue(); serviceTypeAdaptedAccommodationPage.SelectAllAndContinue(); confirmTaxonomyPage.Continue(); tasklistPage.NameAndContactDetailsLink.Click(); organisationNamePage.OrganisationName.SendKeys("Test Organisation"); organisationNamePage.Submit(); companyCharityNumberPage.CompanyNumber.SendKeys("XY123456"); companyCharityNumberPage.CharityNumber.SendKeys("123456A"); companyCharityNumberPage.Submit(); tradingNamesPage.SelectAndContinue(tradingNamesPage.NoOption); contactDetailsPage.BusinessPhone.SendKeys("020987654321"); contactDetailsPage.BusinessEmail.SendKeys($"*****@*****.**"); contactDetailsPage.Submit(); registeredAddressPage.Postcode.SendKeys("SW1W 9SZ"); registeredAddressPage.Submit(); registeredAddressPage.SelectAddress.Click(); driver.FindElement(By.XPath($"(.//option[text()='151 Buckingham Palace Road, London'])[1]")).Click(); registeredAddressPage.Submit(); registrationHistoryPage.SelectAndContinue(registrationHistoryPage.NoOption); businessDependenciesPage.SelectAndContinue(businessDependenciesPage.NoOption); insolvencyPage.SelectAndContinue(insolvencyPage.NoOption); businessSetupPage.SelectAndContinue(businessSetupPage.NoOption); }