public void VerifyErrorMessages()
            {
                PropertiesCollection.test = PropertiesCollection.extent.CreateTest("TC03_VerifyErrorMessages");

                strTestCaseNo = "TC003_Reg";

                var connection            = new ConnectToSQLServer_Fetch_TestData();
                var testdataStripSubGroup = connection.Select(strtblname, strTestCaseNo, strTestType);

                strTDShortCode    = testdataStripSubGroup[3];
                strTDSubGroupName = testdataStripSubGroup[4];

                FpStripSubGroupsPage.NavigateToStripSubGroupPage();

                FpStripSubGroupsPage.ClickEditStripSubGroup(strTDShortCode);
                Thread.Sleep(2000);

                FpStripSubGroupsPage.ClearShortCode();
                FpStripSubGroupsPage.ClickSubGroupName();

                string expectedMsg = "A Short Code is required.";
                string actualMsg   = FpStripSubGroupsPage.GetToolTip_ShortCode();

                try
                {
                    Assert.AreEqual(expectedMsg, actualMsg);
                    PropertiesCollection.test.Log(Status.Pass, "Verify Error Message => Validation for Tooltip message when short code value is null is successful");
                }
                catch
                {
                    PropertiesCollection.test.Log(Status.Fail, "Verify Error Message => Validation for Tooltip message when short code value is null is not successful");
                }

                FpStripSubGroupsPage.EnterShortCode(strTDShortCode);
                Thread.Sleep(2000);

                FpStripSubGroupsPage.ClearSubGroupName();
                FpStripSubGroupsPage.ClickShortCode();

                expectedMsg = "A Strip Sub Group Name is required.";
                actualMsg   = FpStripSubGroupsPage.GetToolTip_SubGroupName();
                try
                {
                    Assert.AreEqual(expectedMsg, actualMsg);
                    PropertiesCollection.test.Log(Status.Pass, "Verify Error Message => Validation for Tooltip message when sub group name value is null is successful");
                }
                catch
                {
                    PropertiesCollection.test.Log(Status.Fail, "Verify Error Message => Validation for Tooltip message when sub group name value is null is not successful");
                }

                FpStripSubGroupsPage.EnterSubGroupName(strTDSubGroupName);

                FpStripSubGroupsPage.ClickSave();
                Thread.Sleep(2000);
            }
            public void ClickOnReturnWithoutSave()
            {
                PropertiesCollection.test = PropertiesCollection.extent.CreateTest("TC04_ClickOnReturnWithoutSave");

                strTestCaseNo = "TC004_Reg";

                var connection            = new ConnectToSQLServer_Fetch_TestData();
                var testdataStripSubGroup = connection.Select(strtblname, strTestCaseNo, strTestType);

                strTDShortCode       = testdataStripSubGroup[3];
                strTDNewSubGroupName = testdataStripSubGroup[5];

                FpStripSubGroupsPage.NavigateToStripSubGroupPage();

                FpStripSubGroupsPage.ClickEditStripSubGroup(strTDShortCode);
                Thread.Sleep(2000);

                FpStripSubGroupsPage.ClearSubGroupName();
                Thread.Sleep(1000);

                FpStripSubGroupsPage.ClickReturn();

                string expectedMsg = "Any unsaved changes will be lost. Are you sure?";
                string actualMsg   = FpStripSubGroupsPage.GetConfirmationText();

                Thread.Sleep(1000);
                try
                {
                    Assert.AreEqual(expectedMsg, actualMsg);
                    PropertiesCollection.test.Log(Status.Pass, "Click On Return Without Save => Validation for confirmation message when return button is clicked without save is successful");
                }
                catch
                {
                    PropertiesCollection.test.Log(Status.Fail, "Click On Return Without Save => Validation for confirmation message when return button is clicked without save is not successful");
                }

                FpStripSubGroupsPage.ClickConfirmationCancel();
                Thread.Sleep(2000);

                FpStripSubGroupsPage.EnterSubGroupName(strTDNewSubGroupName);
                FpStripSubGroupsPage.ClickSave();
                Thread.Sleep(3000);
            }