public void VerifySnowCheckBuilds() { List <string> snowBuildUrls = ApiDataProvider.GetBuildUrls(Brand.SNO, YEAR, DEALER); var urls = string.Empty; foreach (var item in snowBuildUrls) { urls += item + "\n"; } foreach (var buildUrl in snowBuildUrls) { CPQNavigate.GoToUrl(buildUrl); Colors.WaitForChooseColorTitleToDisplay(); Colors.FooterModule.ClickFooterNextButton(); Options.SelectRandomOptionsUntilAccessories(); Accessories.ClikIamFinishedButton(); Quote.FillQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Assert.IsTrue(Confirmation.IsBuildSummaryHeaderDisplayed(), "Confrimation page header is not displayed"); Assert.IsTrue(Confirmation.IsOptionsSectionDisplayed(), "Accessories/Options section is not displayed"); Confirmation.VerifyConfirmationModelNameMatcUrlModel(buildUrl); } }
public void VerifyDealerExperienceQuoteUI() { CPQNavigate.NavigateToBrandDealerExpAccessoriesPage(Brand.RZR, ModelPageUrl.RZR_XP_1000_EPS_BASE_TEST, DEALER_ID); Accessories.WaitForAccessoriesPageToLoad(); Accessories.FooterModule.ClickFooterNextButtonOpenSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.VerifyQuotePageDealerExpUI(); }
public void VerifyQuoteFormValidations() { CPQNavigate.NavigateToAccessoriesPage(Brand.RZR, ModelPageUrl.RZR_XP_1000_EPS_BASE_TEST); Accessories.FooterModule.OpenBuildSummary(); Accessories.ClikIamFinishedButton(); BuildQuotePage.WaitForBuildQuotePgeToLoad(); BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName); BuildQuotePage.SetEmail(AccountDetails.TEST_USER_1.Email); BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber); BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode); BuildQuotePage.ClickAgeCheckBox(); BuildQuotePage.ClickGetInternetPriceButton(); Assert.IsTrue(BuildQuotePage.IsFirstNameValidationErrorDisplayed()); RefreshAndWait(); BuildQuotePage.WaitForBuildQuotePgeToLoad(); BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName); BuildQuotePage.SetEmail(AccountDetails.TEST_USER_1.Email); BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber); BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode); BuildQuotePage.ClickAgeCheckBox(); BuildQuotePage.ClickGetInternetPriceButton(); Assert.IsTrue(BuildQuotePage.IsLastNameValidationErrorDisplayed()); RefreshAndWait(); BuildQuotePage.WaitForBuildQuotePgeToLoad(); BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName); BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName); BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber); BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode); BuildQuotePage.ClickAgeCheckBox(); BuildQuotePage.ClickGetInternetPriceButton(); Assert.IsTrue(BuildQuotePage.IsEmailValidationErrorDisplayed()); RefreshAndWait(); BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName); BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName); BuildQuotePage.SetEmail("invalid@"); BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber); BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode); BuildQuotePage.ClickAgeCheckBox(); BuildQuotePage.ClickGetInternetPriceButton(); Assert.IsTrue(BuildQuotePage.IsEmailValidationErrorDisplayed()); RefreshAndWait(); BuildQuotePage.SetFirstName(AccountDetails.TEST_USER_1.FirstName); BuildQuotePage.SetLastName(AccountDetails.TEST_USER_1.LastName); BuildQuotePage.SetEmail(AccountDetails.TEST_USER_1.Email); BuildQuotePage.SetPhoneNumber(AccountDetails.TEST_USER_1.PhoneNumber); BuildQuotePage.SetPostalCode(AccountDetails.TEST_USER_1.ZipCode); BuildQuotePage.ClickGetInternetPriceButton(); Assert.IsTrue(BuildQuotePage.IsAgeCheckboxValidationErrorDisplayed()); RefreshAndWait(); }
public void VerifyVirtualKeyboardQuote() { CPQNavigate.NavigateToBrandDealerExpAccessoriesPage(Brand.RZR, ModelPageUrl.RZR_XP_1000_EPS_BASE_TEST, DEALER_ID); Accessories.WaitForAccessoriesPageToLoad(); Accessories.FooterModule.ClickFooterNextButtonOpenSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.ClickFirstNameTextBox(); Assert.IsTrue(Quote.IsQuotePageVirtualKeyboardDisplayed(), "Quote page virtual keyboard was not displayed"); }
public void VerifyQuoteConfirmationDealerExp() { CPQNavigate.NavigateToBrandDealerExpAccessoriesPage(Brand.RZR, ModelPageUrl.RZR_XP_1000_EPS_BASE_TEST, DEALER_ID); Accessories.WaitForAccessoriesPageToLoad(); Accessories.FooterModule.ClickFooterNextButtonOpenSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillDealerExpQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Assert.IsFalse(Confirmation.IsSummaryPrintLinkDisplayed(), "Print summary is present on the page for dealer experience URL"); }
public void VerifySteppedProcessAce() { CPQNavigate.NavigateToModelsPage(Brand.ACE); Models.SelectRandomModelVersion(); Accessories.WaitForAccessoriesPageToLoad(); Accessories.ClickCategoryByName("Wheel & Tire Sets"); Accessories.ClickSubcategoryByName("Trail"); Accessories.ClickAccessoryAddByProductName("Wheel & Tire Set"); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Confirmation.ConfirmationPageElementsAreAsExpected(); Assert.IsTrue(Confirmation.IsProductDescPresentBuildConfirmation("Wheel & Tire Set")); }
public void VerifyPrintNotDisplayedSummaryRan() { CPQNavigate.NavigateToBrandDealerExpAccessoriesPage(Brand.RAN, ModelPageUrl.RANGER_500_SAGE_GREEN_ACCESSORIES, DEALER_ID); Accessories.WaitForAccessoriesPageToLoad(); Assert.IsFalse(Accessories.NavigationBarModule.IsNavigationBarDisplayed()); Accessories.ClickCategoryByName("Wheel"); Accessories.ClickSubcategoryByName("Trail"); Accessories.ClickAccessoryAddByProductName("Buckle- Accent"); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillDealerExpQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Assert.IsFalse(Confirmation.IsSummaryPrintLinkDisplayed(), "Print summary is present on the page for dealer experience URL"); }
public void VerifySteppedProcessGem() { CPQNavigate.NavigateToModelsPage(Brand.GEM); Models.ClickGemPassengerModelsFamily(); Models.ClickRandomModelVersion(); Accessories.WaitForAccessoriesPageToLoad(); Accessories.ClickCategoryByName("Power"); Accessories.ClickSubcategoryByName("Battery"); Accessories.ClickAccessoryAddByProductName("AGM"); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillQuoteFormDefaultData(); Quote.ClickFormPersonalUseOption(); Quote.ClickGetInternetPriceButton(); Confirmation.ClickBuildSummaryToggleCaret(); Assert.IsTrue(Confirmation.GetGemAddedAccessoriesCount() > 0, "No accessories added displayed on build confirmation"); }
public void VerifySteppedProcessGen() { CPQNavigate.NavigateToModelsPage(Brand.GEN); Models.SelectModelBySeatNumber("four"); Models.SelectRandomModelVersion(); Trims.WaitForTrimsPageToLoad(); Trims.ClickRandomTrim(); Accessories.WaitForAccessoriesPageToLoad(); Accessories.ClickCategoryByName("Wheel & Tire Sets"); Accessories.ClickSubcategoryByName("Trail"); Accessories.ClickAccessoryAddByProductName("Wheel & Tire Set"); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Confirmation.ConfirmationPageElementsAreAsExpected(); }
public void VerifyPackageSubproductsConfirmationPage() { List <string> subproducts = new List <string>(); CPQNavigate.NavigateToPackagesPage(Brand.RAN, ModelPageUrl.RANGER_XP1000_EPS_STEEL_BLUE_PACKAGES); Packages.WaitForPackagesPageToLoad(); Packages.ClickPackageDetailsLinkByDesc("Ride Command"); subproducts = Packages.GetPackageSubproductsNames(); Packages.ClickAddPackageByDesc("Ride Command"); Packages.FooterModule.ClickFooterNextButton(); Accessories.WaitForAccessoriesPageToLoad(); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Confirmation.VerifyPackageDescPresentConfirmation(new string[] { "Ride Command" }); Confirmation.ClickKitPackageDropdownArrow(); Confirmation.VerifyPkgSubproductsPresentConfirmation(subproducts.ToArray()); }
public void SnowSteppedProcess() { CPQNavigate.NavigateToModelsPage(Brand.SNO); Models.SelectSnowCardByFamily("rush"); Models.SelectRandomModelVersion(); Track.WaitForTrackPageToLoad(); Track.ClickRandomTrack(); Engine.WaitForEnginePageToLoad(); Engine.ClickRandomWholegoodEngine(); Engine.FooterModule.ClickFooterNextButton(); Accessories.WaitForAccessoriesPageToLoad(); Accessories.ClickCategoryByName("Protection"); Accessories.ClickSubcategoryByName("Covers"); Accessories.ClickAccessoryAddByProductName("Undercover"); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Confirmation.ConfirmationPageElementsAreAsExpected(); }
public void VerifySteppedProcessAtv() { CPQNavigate.NavigateToModelsPage(Brand.ATV); Models.SelectModelBySeatNumber("two"); Models.SelectRandomModelVersion(); Trims.WaitForTrimsPageToLoad(); Trims.ClickRandomTrim(); Colors.WaitForColorsPageToLoad(); Colors.ClickRandomWholegoodColor(); Colors.FooterModule.ClickFooterNextButton(); Accessories.WaitForAccessoriesPageToLoad(); Accessories.ClickCategoryByName("Protection"); Accessories.ClickSubcategoryByName("Handguards"); Accessories.ClickAccessoryAddByProductName("Handguards"); Accessories.FooterModule.OpenBuildSummary(); Accessories.WaitUntilBuildSummaryIsDisplayed(); Accessories.ClikIamFinishedButton(); Quote.WaitForBuildQuotePageToLoad(); Quote.FillQuoteFormDefaultData(); Quote.ClickGetInternetPriceButton(); Confirmation.WaitUntilConfirmationPageLoads(); Confirmation.ConfirmationPageElementsAreAsExpected(); }