public void WaitForBuildPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.WaitForCanvassToComplete();
     DriverActions.waitForElementVisibleAndEnabled(BY_FULL_SCREEN_BUTTON);
 }
Пример #2
0
 internal void VerifyContactUsPageHeading(string expectedHeading)
 {
     WebDriverExtensions.WaitForPageLoaded(DriverContext.Driver);
     WebElementExtensions.VerifyPageHeading(ContactUsHeading, expectedHeading);
 }
Пример #3
0
 public void WaitForColorPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_NEXT_BUTTON);
 }
 public void ClickConfirmationContinueButton()
 {
     DriverActions.clickElement(BY_CONF_CONTINUE_BUTTON);
     DriverActions.waitForAjaxRequestToComplete();
     WebDriverExtensions.WaitForPageLoaded(Driver);
 }
Пример #5
0
 public void WaitForTrimsPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_TRIM_CARDS);
 }
Пример #6
0
 public void WaitForBuildQuotePgeToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementToBeEnabled(BY_FIRST_NAME_FIELD);
 }
Пример #7
0
        /// <summary>
        /// To navigate to Accessories page for specific brand/model
        /// </summary>
        /// <param name="brand">RZR, RAN, ...</param>
        /// <param name="model">rzr-570, ranger-500, ...</param>
        public void NavigateToAccessoriesPage(string brand, string model)
        {
            if (stringEqualsIgnoreCase(brand, Brand.IND))
            {
                string buildUrl = string.Concat(UrlBuilder.getIndianLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.ATV))
            {
                string buildUrl = string.Concat(UrlBuilder.getSportsmanLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.SLG))
            {
                string buildUrl = string.Concat(UrlBuilder.getSlgLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.GEN))
            {
                string buildUrl = string.Concat(UrlBuilder.getGeneralLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.ACE))
            {
                string buildUrl = string.Concat(UrlBuilder.getAceLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.RZR))
            {
                string buildUrl = string.Concat(UrlBuilder.getRzrLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.SNO))
            {
                string buildUrl = string.Concat(UrlBuilder.getSnoLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.RAN))
            {
                string buildUrl = string.Concat(UrlBuilder.getRangerLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Info(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else if (stringEqualsIgnoreCase(brand, Brand.GEM))
            {
                string buildUrl = string.Concat(UrlBuilder.getGemLandingPageURL(), model, BUILD_URL_PART);
                GoToUrl(buildUrl);
                Log.Error(string.Format("Navigating to URL: {0}", buildUrl));
            }
            else
            {
                Assert.Fail("Brand {0} not supported", brand);
            }

            ModalsDialogPage.HandlePurposePromptModal();
            WebDriverExtensions.WaitForPageLoaded(Driver);
        }
Пример #8
0
 public void WaitForBuildModelPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementPresent(BY_BUILD_MODEL_HEADER);
 }
Пример #9
0
 public void WaitForColorsPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_WHOLEGOOD_COLORS_CONTAINER);
 }
Пример #10
0
 public void WaitForChooseColorTitleToDisplay()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_CHOOSE_COLOR_TITLE);
 }
Пример #11
0
 public void WaitForModelsPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_MODELS_SEAT_CARDS);
 }
Пример #12
0
 public void WaitForAccessoriesPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_ACCESSORIES_CATEGORIES);
     DriverActions.WaitForCanvassToComplete();
 }
Пример #13
0
 public void WaitUntilBuildSummaryIsDisplayed()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_BUILD_SUMMARY_DIALOG);
 }
 internal void VerifyTitle(string expectedTitle)
 {
     WebDriverExtensions.WaitForPageLoaded(DriverContext.Driver);
     WebElementExtensions.VerifyTitle(expectedTitle);
 }
Пример #15
0
 public void WaitForEnginePageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_WHOLEGOOD_ENGINE);
 }
Пример #16
0
 public void WaitForPackagesPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_PACKAGE_CATEGORY_CONTAINER);
 }
Пример #17
0
 public void WaitUntilConfirmationPageLoads()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementPresent(BY_CONFIRMATION_MSG_CONTAINER);
 }