public void DeleteCourse()
        {
            try
            {
                _test = _extent.StartTest("Test Case #01: Course deleted check");
                System.Threading.Thread.Sleep(1000);
                Pages.Courses.Courses coursepage = new Pages.Courses.Courses(driver);
                coursepage.FilterText().SendKeys("sample course12");
                coursepage.DeleteCourse().Click();
                coursepage.SweetAlterYes().Click();

                System.Threading.Thread.Sleep(1000);
                coursepage.FilterText().SendKeys("sample course12");

                System.Threading.Thread.Sleep(1000);
                if (coursepage.FirstCourseName().Displayed)
                {
                    if (coursepage.FirstCourseName().Text == "sample course12")
                    {
                        _test.Log(LogStatus.Fail, "Course is not deleted");
                        _extent.EndTest(_test);
                    }
                    else
                    {
                        _test.Log(LogStatus.Pass, "Course deleted successfully");
                        _extent.EndTest(_test);
                    }
                }
                else
                {
                    _test.Log(LogStatus.Pass, "Course deleted successfully");
                    _extent.EndTest(_test);
                }
            }
            catch (Exception e)
            {
                _test.Log(LogStatus.Fail, "Failed " + e.Message);
                screenShotObj.GetScreenshot(driver, "ErrorOccuredInElective");
            }
            _extent.Flush();
            _extent.Close();

            System.Threading.Thread.Sleep(1000);
        }