public void EditGroupApplication() { softAssert.VerifyElementPresentInsideWindow(GroupeEdit, GroupCancel); GroupeEdit.ClickOn(); GroupName.EnterClearText("11"); GroupEditSave.ClickOn(); softAssert.VerifyElementPresentInsideWindow(GroupNameError, GroupCancel); GroupName.EnterClearText(Constant.groupName + RandomNumber.smallNumber()); GroupEditSave.ClickOn(); softAssert.VerifySuccessMsg(); // softAssert.VerifyElementNotPresent(GroupCancel); }
//create new permission group public void CreateGroupApplication() { GroupCreate.ClickOn(); softAssert.VerifyElementPresentInsideWindow(GroupCancel, GroupCancel); GroupName.EnterClearText("11"); GroupSave.ClickOn(); softAssert.VerifyElementPresentInsideWindow(GroupNameError, GroupCancel); GroupName.EnterClearText(Constant.groupName + RandomNumber.smallNumber()); Thread.Sleep(500); GroupSave.ClickOn(); softAssert.VerifyElementHasEqual(utility.ListCount(countGroupList), Constant.tmpListCount + 1); }