//  [Test, Category("Smoke"), Order(8)]
 public void Navigate_to_Public_Catalog()
 {
     Driver.Instance.Navigate().GoToUrl("https://prodsupport-ki-17-3.meridianksi.net/public/trainingcatalog.aspx");
     //EnterURL("baseqa-17-3-m-c1.meridianksi.net/public/trainingcatalog.aspx");
     Assert.IsTrue(CatalogPage.Title == "Public Catalog");
     CatalogPage.SearchContent();
     Assert.IsTrue(SearchResultsPage.CheckSearchRecord("") > 1);
     SearchResultsPage.ClickCourseTitle("");
     Assert.IsTrue(AdminContentDetailsPage.CheckCourseTitle(""));
 }
        public void Upload_Launch_Course()
        {
            CommonSection.CreateLink.SCORM();
            _test.Log(Status.Info, "open scorm page");
            CreatePage.ClickBrowsebutton();
            _test.Log(Status.Info, "browse the content and click create button");
            //  //  CreatePage.UploadScormfile("\\fileserver\\maindrive\\product_team\\SCORM\\SCORM_1_2\\maritime_navigation_exam_only.zip");
            //  CreatePage.ClickCreatebutton();
            Assert.IsTrue(SummaryPage.Title == "Summary");
            StringAssert.AreEqualIgnoringCase("The course was created.", SummaryPage.GetSuccessMessage(), "Error message is different");
            SummaryPage.UpdateTitle("Maritime Navigation - Exam only for Migration Test");
            //   SummaryPage.ClickSavebutton();
            StringAssert.AreEqualIgnoringCase("The changes were saved.", AdminContentDetailsPage.GetSuccessMessage(), "Error message is different");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Checkin scorm course");
            CommonSection.CatalogSearchText("Migration");
            _test.Log(Status.Info, "search migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Maritime Navigation - Exam only for Migration Test") >= 1);
            SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "opens searched content link");
            Assert.IsTrue(AdminContentDetailsPage.CheckCourseTitle("Maritime Navigation - Exam only for Migration Test"));
            AdminContentDetailsPage.ClickOpenItembutton();
            _test.Log(Status.Info, "Enrols and open the scorm course");
            Assert.IsTrue(CourseLaunchModalPage.Exist("Maritime Navigation - Exam only for Migration Test"));
            // CourseLaunchModalPage.ClickBrowserX();
            Assert.IsTrue(AdminContentDetailsPage.CheckResumeButton());

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "open training page");
            TrainingPage.ManageContentPortlet.SearchForContent("Migration");
            _test.Log(Status.Info, "search for content migration");
            Assert.IsTrue(SearchResultsPage.CheckSearchRecord("Maritime Navigation - Exam only for Migration Test") >= 1);
            SearchResultsPage.ClickCourseTitle("Maritime Navigation - Exam only for Migration Test");
            _test.Log(Status.Info, "click the searjced title link");
            AdminContentDetailsPage.Summary.ClickViewButton();                                        //need towrite the code
            _test.Log(Status.Info, "CLick view button");
            Assert.IsTrue(SummaryPage.Title == "Maritime Navigation - Exam only for Migration Test"); //need towrite the code
            Assert.IsTrue(AdminContentDetailsPage.CheckCourseTitleOnClickingEditButton("Maritime Navigation - Exam only for Migration Test"));
            AdminContentDetailsPage.DeleteContent();
            _test.Log(Status.Info, "deleting the content");
            //  StringAssert.StartsWith("Success", ContentDetailsPage.GetRemovalSuccessMessage(), "Error message is different");
            CommonSection.SearchCatalog("Maritime Navigation - Exam only for Migration Test");
            Assert.IsTrue((SearchResultsPage.ReturnFirstRecordTitle() != "Maritime Navigation - Exam only for Migration Test"));
        }