public void ATC3345_CRMInvestigationVerifyUserCantEditMasterCases()
        {
            string[] NoAccessUser = { "GeneralStaff", "IMS business systems support staff" };
            User user = this.environment.GetUser(SecurityRole.GeneralStaff);
            bool lastIteration = false;
            for (int i = 0; i < 2; i++)
            {
                switch (i)
                {
                    case 0:
                        user = this.environment.GetUser(SecurityRole.GeneralStaff);
                        break;
                    case 1:
                        user = this.environment.GetUser(SecurityRole.IMSBusinessSupportStaff);
                        lastIteration = true;
                        break;
                }
                new LoginDialog().Login(user.Id, user.Password);

                HomePage homePage = new HomePage(driver);
                string HomeWindow = driver.CurrentWindowHandle;

                // Case -1: Navigate to Investigation Master Case via Advanced Find and try to edit it.
                homePage.ClickAdvancedfindIMG();
                Thread.Sleep(400);
                driver = UICommon.SwitchToNewBrowserWithTitle(driver, HomeWindow, "Advanced Find");

                AdvancedFindPage advancedFindPage = new AdvancedFindPage(driver);
                Assert.IsFalse(advancedFindPage.VerifyLookForListItemPresent("Investigation Master Case"), "Investigation Master Case option present!!!");
                advancedFindPage.CloseWindow();

                driver = driver.SwitchTo().Window(HomeWindow);

                // Case -2: INVALID Navigate to Investigation Master Case via Home tiles and try to edit it.

                // Case -3 & 4: Navigate to Investigation Master Case via creating it through the home ribbon and try to edit it.
                homePage.HoverCRMRibbonTab();
                Assert.IsFalse(homePage.VerifyInvestigationsRibbonButtonPresent(), "Investigation Ribbon button Present!!!!");

                if (lastIteration == false)
                {
                    driver.Quit();
                    driver = null;
                    this.TestSetup();
                }
            }
        }