Пример #1
0
        public void OpenDropdown(IWebElement element)
        {
            KendoDropdown dropdown = new KendoDropdown(element);

            dropdown.Expand();
            WaitUtils.WaitForLoaderToDisapear(driver);
        }
Пример #2
0
        public void ClickAutomaticalyRenewalCheckbox(string productName)
        {
            string newLocator = locatorForAutoRenewalCheckboxByProductName.Replace("foo", productName);

            cmnElement.ClickElement(driver.FindElement(By.XPath(newLocator)));
            WaitUtils.WaitForLoaderToDisapear(driver);
        }
Пример #3
0
        public void SetQuantityAsString(IWebElement element, string item, string locator)
        {
            KendoDropdown kendoDropdown = new KendoDropdown(element);

            kendoDropdown.SelectItem(locator, item);
            WaitUtils.WaitForLoaderToDisapear(driver);
        }
Пример #4
0
        public void SetMaintenanceAndSupportQuantity(int item)
        {
            string text = HelperUtils.GetDescription((YearQuantity)item - 1);

            SetQuantityAsString(MaintenanceAndSupportQuantity, text, locatorForYearlyDropdownValues);
            WaitUtils.WaitForLoaderToDisapear(driver);
        }
Пример #5
0
        public double GetUnitPrice()
        {
            WaitUtils.WaitForLoaderToDisapear(driver);

            string unitPriceLabelText        = UnitPriceLabel.Text;
            string removeDollarSignUnitPrice = Regex.Replace(unitPriceLabelText, @"[$ ]+", "");

            return(Double.Parse(removeDollarSignUnitPrice));
        }
Пример #6
0
        public double GetSavingsForUnitPrice()
        {
            WaitUtils.WaitForLoaderToDisapear(driver);

            string savings = SavingsLabelForUnitPrice.Text;
            string removeDollarSignSavings = Regex.Replace(savings, @"[$ ]+", "");

            return(Double.Parse(removeDollarSignSavings));
        }
Пример #7
0
        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);
        }