Esempio n. 1
0
        public void UpdateBasePriceListApplication()
        {
            Pages.Home_Page.EntePriceListTab();

            string PriceToUpdate      = utility.ElementText("//*[@id='gridPriceListPrices']/div[2]/div[1]/table/tbody/tr/td[5]");
            string percentageToUpdate = "25";

            PriceListUpdateScreen.ClickWait();
            BasicPricelistCheck.ClickOn();
            PercentageBox.SendKeys(percentageToUpdate);
            UpdateByBasicPriceType.ClickOn();

            var endResult = utility.PricelistTaxCal(decimal.Parse(PriceToUpdate), decimal.Parse(percentageToUpdate));

            Pages.PriceList_Page.PriceListWindow.ClickOn();
            Assert.AreNotEqual(PriceToUpdate, endResult);
        }
Esempio n. 2
0
 private void ClearInvalid()
 {
     Validation.ClearInvalid(PercentageBox.GetBindingExpression(TextBox.TextProperty));
     Validation.ClearInvalid(AccountsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty));
     Validation.ClearInvalid(OrganizationsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty));
 }
Esempio n. 3
0
 private void PageFunction_Loaded(object sender, RoutedEventArgs e)
 {
     PercentageBox.GetBindingExpression(TextBox.TextProperty).UpdateSource();
     AccountsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty).UpdateSource();
     OrganizationsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty).UpdateSource();
 }