public void OpenDropdown(IWebElement element) { KendoDropdown dropdown = new KendoDropdown(element); dropdown.Expand(); WaitUtils.WaitForLoaderToDisapear(driver); }
public void ClickAutomaticalyRenewalCheckbox(string productName) { string newLocator = locatorForAutoRenewalCheckboxByProductName.Replace("foo", productName); cmnElement.ClickElement(driver.FindElement(By.XPath(newLocator))); WaitUtils.WaitForLoaderToDisapear(driver); }
public void SetQuantityAsString(IWebElement element, string item, string locator) { KendoDropdown kendoDropdown = new KendoDropdown(element); kendoDropdown.SelectItem(locator, item); WaitUtils.WaitForLoaderToDisapear(driver); }
public void SetMaintenanceAndSupportQuantity(int item) { string text = HelperUtils.GetDescription((YearQuantity)item - 1); SetQuantityAsString(MaintenanceAndSupportQuantity, text, locatorForYearlyDropdownValues); WaitUtils.WaitForLoaderToDisapear(driver); }
public double GetUnitPrice() { WaitUtils.WaitForLoaderToDisapear(driver); string unitPriceLabelText = UnitPriceLabel.Text; string removeDollarSignUnitPrice = Regex.Replace(unitPriceLabelText, @"[$ ]+", ""); return(Double.Parse(removeDollarSignUnitPrice)); }
public double GetSavingsForUnitPrice() { WaitUtils.WaitForLoaderToDisapear(driver); string savings = SavingsLabelForUnitPrice.Text; string removeDollarSignSavings = Regex.Replace(savings, @"[$ ]+", ""); return(Double.Parse(removeDollarSignSavings)); }
public void SelectItem(string locator, string item) { Expand(); WaitUtils.WaitForLoaderToDisapear(driver); string newLocator = locator.Replace("foo", item); HelperUtils.ScrollToElement(driver.FindElement(By.XPath(newLocator)), driver); WaitUtils.WaitForLoaderToDisapear(driver); }