public void DevCreatePriceListApplication() { Pages.Home_Page.EntePriceListTab(); PriceListCreateNew.ClickOn(); PriceListSaveDev.ClickOn(); softAssert.VerifyElementPresentInsideWindow(ValidationError, PriceListCancelDev); PriceListName.EnterText(Constant.priceListName + RandomNumber.smallNumber()); PriceListCode.EnterText(Constant.priceListCode + RandomNumber.smallNumber()); PriceListPrice.EnterClearText("25"); PriceListSaveDev.ClickOn(); PriceListSaveDev.ClickOn(); softAssert.VerifySuccessMsg(); softAssert.VerifyElementHasEqual(utility.TableCount(priceListTableCount), Constant.tmpTableCount + 1); }
public void DevCreatePriceListSeriesApplicaiton() { Pages.Home_Page.EntePriceListTab(); PriceListCreateNew.ClickOn(); PriceListCode.EnterText(Constant.priceListCode + RandomNumber.smallNumber()); PriceListName.EnterText(Constant.priceListName + RandomNumber.smallNumber()); Thread.Sleep(500); PriceListType.ClickOn(); PriceListType.SendKeys(Keys.ArrowDown); PriceListType.SendKeys(Keys.ArrowDown); PriceListType.SendKeys(Keys.Enter); utility.SelectCodeOnCodeBroswer("//*[@id='gridCodeBrowser']/div[2]/table/tbody/tr[1]/td[5]/div/input"); PriceListSaveDev.ClickOn(); PriceListSaveDev.ClickOn(); softAssert.VerifySuccessMsg(); softAssert.VerifyElementHasEqual(utility.TableCount(priceListTableCount), Constant.tmpTableCount + 1); }
public void OpenPriceListAddWindow() { PriceListCreateNew.ClickOn(); softAssert.VerifyElementIsPresent(PriceListCancel); }