public void AppUser_Edit_ConsoleUser()
        {
            //Arrange and Act
            _configAppNamespacePage = new ConfigAppNamespacePage(Driver.Instance);
            _configAppNamespacePage.CreateAppNamespace(true);
            Helper.GoToPage("Manage/Users", Driver.Instance, "ads%5Ccpt_testacc_1:CupAta6a@");
            var userName = Helper.GetgridCellVaule("myGridData", 1, 1);

            Helper.GridDoubleClick("myGrid", 1, Driver.Instance);
            Thread.Sleep(1000);
            var controlDetails = new List <ControlDetails>();

            controlDetails.Add(new ControlDetails()
            {
                Name = "txtUserName", Value = userName, Type = ControlType.TextBox
            });
            Helper.AssignValuesToControl(controlDetails, Driver.Instance);
            Helper.ButtonClickEvent("togglevalue", Driver.Instance);
            Helper.GridRowSelect("PopupGridData", 1, 1);
            //Helper.GridRowSelect("PopupGridData", 3, 1);
            Helper.GoToNavigation(3, Driver.Instance, "PopupGrid");
            Helper.GridRowSelect("PopupGridData", 1, 1);
            Helper.ButtonClickEvent("togglevalue1", Driver.Instance);
            Helper.ButtonClickEvent("modalSubmit", Driver.Instance);
            Thread.Sleep(1000);
            var actualResult = Driver.Instance.FindElements(By.Id("notification"))[0].Text.Contains("updated successfully");

            //Assert
            Assert.IsTrue(actualResult);
        }
        public void AppUser_Add_NewUser_Test()
        {
            //Arrange and Act
            _configAppNamespacePage = new ConfigAppNamespacePage(Driver.Instance);
            _configAppNamespacePage.CreateAppNamespace(true);
            Helper.GoToPage("Manage/Users", Driver.Instance, "ads%5Ccpt_testacc_1:CupAta6a@");
            var userName = "******" + Convert.ToString(random.Next(6854585));

            Helper.LinkButtonClick("Add New User", Driver.Instance);
            var controlDetails = new List <ControlDetails>();

            controlDetails.Add(new ControlDetails()
            {
                Name = "txtUserName", Value = userName, Type = ControlType.TextBox
            });
            Helper.AssignValuesToControl(controlDetails, Driver.Instance);
            Helper.ButtonClickEvent("togglevalue", Driver.Instance);
            Helper.GridRowSelect("PopupGridData", 1, 1);
            Helper.GoToNavigation(2, Driver.Instance, "PopupGrid");
            Helper.GridRowSelect("PopupGridData", 1, 1);
            Helper.ButtonClickEvent("togglevalue1", Driver.Instance);
            Helper.ButtonClickEvent("modalSubmit", Driver.Instance);
            Thread.Sleep(2000);
            string[] splitValue = Driver.Instance.FindElements(By.Id("notification"))[0].Text.Split('\n');
            //Assert
            Assert.AreEqual(splitValue[1], "'" + userName + "' has been added to Management Console");
        }