public void AddUserGrouptoApplication(string applicationName, string usergroup, log4net.ILog log)
        {
            PageFactory.InitElements(driver, this);
            USER_GROUPS_link.Click();


            Create_New_User_Group_link.Click();
            Name_text.SendKeys(usergroup);
            Description_text.SendKeys(usergroup);
            Application_dropdown.SendKeys(applicationName);
            Save_link.Click();

            //Asertion Section:

            string actualUserGroupName;

            try
            {
                actualUserGroupName = Name_text.Text;
            }
            catch
            {
                Thread.Sleep(1000);
                PageFactory.InitElements(driver, this);
                actualUserGroupName = Name_text.Text;
            }
            Assert.AreEqual(usergroup, actualUserGroupName);

            log.Info(Name_text.Text);

            //Go back to home page...
            USERS_link.Click();
        }
        void ReleaseDesignerOutlets()
        {
            if (Delete_button != null)
            {
                Delete_button.Dispose();
                Delete_button = null;
            }

            if (Description_text != null)
            {
                Description_text.Dispose();
                Description_text = null;
            }

            if (loader != null)
            {
                loader.Dispose();
                loader = null;
            }

            if (MainUIView != null)
            {
                MainUIView.Dispose();
                MainUIView = null;
            }

            if (netWork_label != null)
            {
                netWork_label.Dispose();
                netWork_label = null;
            }

            if (Play != null)
            {
                Play.Dispose();
                Play = null;
            }

            if (recording != null)
            {
                recording.Dispose();
                recording = null;
            }

            if (Save_button != null)
            {
                Save_button.Dispose();
                Save_button = null;
            }

            if (saveLoader != null)
            {
                saveLoader.Dispose();
                saveLoader = null;
            }

            if (Scrollview != null)
            {
                Scrollview.Dispose();
                Scrollview = null;
            }

            if (Status_switch1 != null)
            {
                Status_switch1.Dispose();
                Status_switch1 = null;
            }

            if (Title_text != null)
            {
                Title_text.Dispose();
                Title_text = null;
            }
        }