public void WaitForBuildPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.WaitForCanvassToComplete(); DriverActions.waitForElementVisibleAndEnabled(BY_FULL_SCREEN_BUTTON); }
internal void VerifyContactUsPageHeading(string expectedHeading) { WebDriverExtensions.WaitForPageLoaded(DriverContext.Driver); WebElementExtensions.VerifyPageHeading(ContactUsHeading, expectedHeading); }
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); }
public void WaitForTrimsPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_TRIM_CARDS); }
public void WaitForBuildQuotePgeToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementToBeEnabled(BY_FIRST_NAME_FIELD); }
/// <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); }
public void WaitForBuildModelPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementPresent(BY_BUILD_MODEL_HEADER); }
public void WaitForColorsPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_WHOLEGOOD_COLORS_CONTAINER); }
public void WaitForChooseColorTitleToDisplay() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_CHOOSE_COLOR_TITLE); }
public void WaitForModelsPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_MODELS_SEAT_CARDS); }
public void WaitForAccessoriesPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_ACCESSORIES_CATEGORIES); DriverActions.WaitForCanvassToComplete(); }
public void WaitUntilBuildSummaryIsDisplayed() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_BUILD_SUMMARY_DIALOG); }
internal void VerifyTitle(string expectedTitle) { WebDriverExtensions.WaitForPageLoaded(DriverContext.Driver); WebElementExtensions.VerifyTitle(expectedTitle); }
public void WaitForEnginePageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_WHOLEGOOD_ENGINE); }
public void WaitForPackagesPageToLoad() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementVisibleAndEnabled(BY_PACKAGE_CATEGORY_CONTAINER); }
public void WaitUntilConfirmationPageLoads() { WebDriverExtensions.WaitForPageLoaded(Driver); DriverActions.waitForElementPresent(BY_CONFIRMATION_MSG_CONTAINER); }