Exemple #1
0
 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();
        }
Exemple #3
0
 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();
 }
Exemple #4
0
        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");
        }