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);
        }
예제 #3
0
        public Launch()
        {
            // arrange
            d              = new DriverFactory();
            driver         = d.CreateDriver();
            loginPage      = new LoginPage(driver);
            homePage       = new HomePage(driver);
            typeOfBusiness = new TypeOfBusinessPage(driver);

            HttpClientHelper.ClearUserData($"***REMOVED***");
        }
예제 #4
0
        public SoleTrader()
        {
            // 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.SoleTrader.TasklistPage(driver);
            serviceLocationPage         = new ServiceLocationPage(driver);

            HttpClientHelper.ClearUserData($"***REMOVED***");

            loginPage.Login(d.Url);
            homePage.ApplyOnline();
        }
예제 #5
0
        public CommonElements()
        {
            // arrange
            d                  = new DriverFactory();
            driver             = d.CreateDriver();
            loginPage          = new LoginPage(driver);
            homePage           = new HomePage(driver);
            typeOfBusinessPage = new TypeOfBusinessPage(driver);
            header             = new Header(driver);
            footer             = new Footer(driver);
            privacyPage        = new PrivacyPage(driver);
            cookiesPage        = new CookiesPage(driver);
            tAndCpage          = new TAndCPage(driver);

            HttpClientHelper.ClearUserData($"***REMOVED***");

            loginPage.Login(d.Url);
            homePage.ApplyOnline();
        }