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();
        }
Ejemplo n.º 2
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();
        }