Exemplo n.º 1
0
 public void EntePriceListTab()
 {
     EnterSettingScreen();
     Browser.chromebDriver.FindElement(DevPriceListScreen).ClickOn();
     Constant.tmpTableCount      = utility.TableCount(Pages.PriceList_Page.priceListTableCount);
     Constant.priceListExistCode = utility.ElementText(Pages.PriceList_Page.priceListFirstCode);
 }
Exemplo n.º 2
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);
        }