public void OneTimeTearDown() { AdminLoginPage ALoginPage = LoadAdminLoginPage(); ALoginPage.ClickLoginButton(); AdminHomePage adminHomePage = ALoginPage.LogInAdmin(); adminHomePage.ClickSystemMenu(); adminHomePage.ClickLocalizationMenu(); adminHomePage.ClickTaxesMenu(); TaxClassesPage taxClassesPage = adminHomePage.GoToTaxClassesPage(); taxClassesPage = taxClassesPage.RemoveRuleFromTaxClass(TaxClassesRepository.GetTaxebleProductsTaxClass(), TaxRateRepository.GetFixTaxRate()); taxClassesPage = taxClassesPage.RemoveRuleFromTaxClass(TaxClassesRepository.GetTaxebleProductsTaxClass(), TaxRateRepository.GetPercentageTaxRate()); Thread.Sleep(3000); // for presentation ONLY taxClassesPage.ClickSystemMenu(); TaxRatesPage taxRatesPage = taxClassesPage.GoToTaxRatesPage(); taxRatesPage = taxRatesPage.DeleteTaxRate(TaxRateRepository.GetFixTaxRate().Name); taxRatesPage = taxRatesPage.DeleteTaxRate(TaxRateRepository.GetPercentageTaxRate().Name); Thread.Sleep(3000); // for presentation ONLY taxClassesPage.ClickSystemMenu(); GeoZonesPage geoZonesPage = taxClassesPage.GoToGeoZonePage(); geoZonesPage.DeleteGeoZone(GeoZonesRepository.GetUAGeoZone().Name); Thread.Sleep(1000); // for presentation ONLY }
public void OneTimeSetUp() { AdminLoginPage ALoginPage = LoadAdminLoginPage(); AdminHomePage AHomePage = ALoginPage.LogInAdmin(); CurrenciesPage CurrencyPage = AHomePage.ClickCurrenciesMenu(); euroRate = CurrencyPage.GetCurrencyRate("Euro"); gbpRate = CurrencyPage.GetCurrencyRate("Pound Sterling"); HomePage UserHomePage = LoadHomePage(); UserHomePage = UserHomePage.ChooseCurrency(Currency.US_DOLLAR); UserHomePage = LoadHomePage(); usdPrice = UserHomePage.GetProductNewPriceValue(ProductRepository.GetCanonEos5D()); UserHomePage = UserHomePage.ChooseCurrency(Currency.EURO); UserHomePage = LoadHomePage(); euroPrice = UserHomePage.GetProductNewPriceValue(ProductRepository.GetCanonEos5D()); UserHomePage = UserHomePage.ChooseCurrency(Currency.POUND_STERLING); UserHomePage = LoadHomePage(); gbpPrice = UserHomePage.GetProductNewPriceValue(ProductRepository.GetCanonEos5D()); }
public void OneTimeSetup() { AdminLoginPage ALoginPage = LoadAdminLoginPage(); AdminHomePage AHomePage = ALoginPage.LogInAdmin(); AHomePage.ClickSystemMenu(); AHomePage.ClickLocalizationMenu(); GeoZonesPage zonesPage = AHomePage.GoToGeoZonePage(); zonesPage.AddNewGeoZone(GeoZonesRepository.GetUAGeoZone()); zonesPage.ClickSystemMenu(); zonesPage.ClickTaxesMenu(); TaxRatesPage ratesPage = zonesPage.GoToTaxRatesPage(); ratesPage.AddNewTaxRate(TaxRateRepository.GetFixTaxRate()); ratesPage.AddNewTaxRate(TaxRateRepository.GetPercentageTaxRate()); ratesPage.ClickSystemMenu(); TaxClassesPage classesPage = ratesPage.GoToTaxClassesPage(); classesPage = classesPage.EditTaxClass(TaxClassesRepository.GetTaxebleProductsTaxClass(), TaxRateRepository.GetFixTaxRate()); classesPage = classesPage.EditTaxClass(TaxClassesRepository.GetTaxebleProductsTaxClass(), TaxRateRepository.GetPercentageTaxRate()); Thread.Sleep(2000); // for presentation ONLY }