public void TC03_FPWeb_Admin_Rostering_ShiftAdministration()
        {
            clsLoginPage loginPage = new clsLoginPage();

            loginPage.LoginPage();


            var TopbarMenu = new clsMainPage_TopbarMenu();

            TopbarMenu.NavigatetoShiftAdministration();

            var ShiftAdministration = new clsShiftAdministration();

            ShiftAdministration.AddShiftdetails("Night", "N", "08:00", "9:00", "BFM");

            TopbarMenu.NavigatetoShiftAdministration();

            ShiftAdministration.EditShiftdetails("Night", "12:00");

            TopbarMenu.NavigatetoShiftAdministration();

            ShiftAdministration.CopyShiftdetails("Night", "Night-Copy", "11:00");

            TopbarMenu.NavigatetoShiftAdministration();

            ShiftAdministration.DeleteShiftdetails("Night");


            //   TopbarMenu.Logout();
        }
        public void EditShiftAdmin()
        {
            strTestCaseNo = "TC003_Reg";
            strtblname    = "automation_shiftadministration";
            strTestType   = "Regression";

            PropertiesCollection.test = PropertiesCollection.extent.CreateTest("TC03_EditShiftAdmin");
            FpAdminMenus           adminmenus = new FpAdminMenus();
            clsShiftAdministration shiftadmin = new clsShiftAdministration();

            adminmenus.AdminClick();
            adminmenus.LnkShiftAdministration.Click();
            if (shiftadmin.btnConfirmationOK.Displayed == true && shiftadmin.btnConfirmationOK.Enabled == true)
            {
                shiftadmin.btnConfirmationOK.Click();
            }


            var connection    = new ConnectToMySQL_Fetch_TestData();
            var testdataShift = connection.Select(strtblname, strTestCaseNo, strTestType);

            strShiftName        = testdataShift[4];
            strUpdatedStartdate = testdataShift[6];
            strUpdatedDuration  = testdataShift[7];

            shiftadmin.EditShiftdetails(strShiftName, strUpdatedStartdate, strUpdatedDuration);
            string[] shiftdetails = shiftadmin.RetrieveShiftdetails(strShiftName);

            string strfbwebshiftname  = shiftdetails[0];
            string strfbwebshortcode  = shiftdetails[1];
            string strfbwebstarttime  = shiftdetails[2];
            string strfbwebDuration   = shiftdetails[3];
            string strfbwebCurrencies = shiftdetails[4];
            string strfbwebStatus     = shiftdetails[5];

            try
            {
                Assert.AreEqual(strShiftName, strfbwebshiftname);
                PropertiesCollection.test.Log(Status.Pass, strfbwebstarttime + " Shift Name validated Succesfully");
            }
            catch {
                PropertiesCollection.test.Log(Status.Fail, strfbwebstarttime + " Shift Name not validated Succesfully");
            }
            try
            {
                Assert.AreEqual(strUpdatedStartdate, strfbwebstarttime);
                PropertiesCollection.test.Log(Status.Pass, strfbwebstarttime + " Updated Shift Start time validated Succesfully");
            }
            catch
            {
                PropertiesCollection.test.Log(Status.Fail, strfbwebstarttime + " Updated Shift Start time mot validated Succesfully");
            }
            try {
                Assert.AreEqual(strUpdatedDuration, strfbwebDuration);
                PropertiesCollection.test.Log(Status.Pass, strfbwebstarttime + "Updated Shift Duration validated Succesfully");
            }
            catch
            {
                PropertiesCollection.test.Log(Status.Fail, strfbwebstarttime + "Updated Shift Duration not validated Succesfully");
            }

            Thread.Sleep(4000);
        }