public void CreateFormsCategoryApplication() { CreateNewCategory.ClickOn(); //CreateNewCategory.ClickOn(); CategoryName.SendKeys(Constant.CategoryName); SaveCategory.ClickOn(); softAssert.VerifyElementHasEqual(utility.TableCount(formsCategoryTableCount), Constant.tmpTableCount + 1); }
public void AddCategory() { Helper helper = new Helper(this.driver); ListCategoryLink.Click(); AddCategoryLink.Click(); CategoryName.SendKeys("Food"); CreateCategoryBtn.Click(); }
public void EditFormsCategoryApplication() { EditCategory.ClickOn(); CategoryName.Clear(); SaveCategory.ClickOn(); softAssert.VerifyElementPresentInsideWindow(NameValidation, Pages.Home_Page.PopupCloseClass); CategoryName.SendKeys(Constant.Edit + RandomNumber.smallNumber()); SaveCategory.ClickOn(); softAssert.VerifySuccessMsg(); }
public void EnterDetails() { CategoryName.SendKeys("NEW Category" + RandomString(20)); var Section = driver.FindElement(By.Name("Section")); //create select element object var selectElement = new SelectElement(Section); //select by value selectElement.SelectByValue("Sales"); // select by text selectElement.SelectByText("Technical"); }