public void WaitForBuildPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.WaitForCanvassToComplete();
     DriverActions.waitForElementVisibleAndEnabled(BY_FULL_SCREEN_BUTTON);
 }
Exemplo n.º 2
0
 internal void VerifyContactUsPageHeading(string expectedHeading)
 {
     WebDriverExtensions.WaitForPageLoaded(DriverContext.Driver);
     WebElementExtensions.VerifyPageHeading(ContactUsHeading, expectedHeading);
 }
Exemplo n.º 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);
 }
Exemplo n.º 5
0
 public void WaitForTrimsPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_TRIM_CARDS);
 }
Exemplo n.º 6
0
 public void WaitForBuildQuotePgeToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementToBeEnabled(BY_FIRST_NAME_FIELD);
 }
Exemplo n.º 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);
        }
Exemplo n.º 8
0
 public void WaitForBuildModelPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementPresent(BY_BUILD_MODEL_HEADER);
 }
Exemplo n.º 9
0
 public void WaitForColorsPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_WHOLEGOOD_COLORS_CONTAINER);
 }
Exemplo n.º 10
0
 public void WaitForChooseColorTitleToDisplay()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_CHOOSE_COLOR_TITLE);
 }
Exemplo n.º 11
0
 public void WaitForModelsPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_MODELS_SEAT_CARDS);
 }
Exemplo n.º 12
0
 public void WaitForAccessoriesPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_ACCESSORIES_CATEGORIES);
     DriverActions.WaitForCanvassToComplete();
 }
Exemplo n.º 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);
 }
Exemplo n.º 15
0
 public void WaitForEnginePageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_WHOLEGOOD_ENGINE);
 }
Exemplo n.º 16
0
 public void WaitForPackagesPageToLoad()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementVisibleAndEnabled(BY_PACKAGE_CATEGORY_CONTAINER);
 }
Exemplo n.º 17
0
 public void WaitUntilConfirmationPageLoads()
 {
     WebDriverExtensions.WaitForPageLoaded(Driver);
     DriverActions.waitForElementPresent(BY_CONFIRMATION_MSG_CONTAINER);
 }