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); }
private void ClearInvalid() { Validation.ClearInvalid(PercentageBox.GetBindingExpression(TextBox.TextProperty)); Validation.ClearInvalid(AccountsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty)); Validation.ClearInvalid(OrganizationsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty)); }
private void PageFunction_Loaded(object sender, RoutedEventArgs e) { PercentageBox.GetBindingExpression(TextBox.TextProperty).UpdateSource(); AccountsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty).UpdateSource(); OrganizationsComboBox.GetBindingExpression(ComboBox.SelectedItemProperty).UpdateSource(); }