Example #1
0
        public void tc_7251_Create_a_new_SCORM_course()
        {
            string expectedresult = "Summary";

            CommonSection.CreteNewScorm(scormtitle + "TC7251");
            _test.Log(Status.Info, "Creating New Scorm");
            ContentDetailsPage.Accordians.ClickEdit_Summery();
            _test.Log(Status.Info, "Click on Edit Summery");
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7251");
            _test.Log(Status.Info, "Searching Tag.");
            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Driver.clickEleJs(By.XPath("//input[@value='Save']"));
            driver.WaitForElement(By.XPath("//h3[contains(.,'Summary')]"));
            string text = driver.gettextofelement(By.XPath("//h3[contains(.,'Summary')]"));

            StringAssert.AreEqualIgnoringCase(expectedresult, text);
            Assert.IsTrue(driver.existsElement(By.XPath("//*[contains(@class,'alert alert-success')]")));
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7251')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7251", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(scormtitle + "TC7251");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
Example #2
0
        //Editing existing certification
        public void tc_10879_ManageA_Certification()
        {
            CommonSection.CreateLink.Certifications();
            CertificationPage.FillTitle(CertificatrTitle + "TC10879");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreate();
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(CertificatrTitle + "TC10879");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC10879");

            ContentDetailsPage.Summary.ClickEdit();
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC10879");
            _test.Log(Status.Info, "Searching Tag.");
            CertificationPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10879')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC10879", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog_certification("No"));
            CommonSection.SearchCatalog(CertificatrTitle + "TC10879");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10879"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(CertificatrTitle + "TC10879");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(CertificatrTitle + "TC10879"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
Example #3
0
        public void tc_7253_Manage_a_SCORM_course()
        {
            string expectedresult = "Summary";

            CommonSection.CreteNewScorm(scormtitle + "TC7251");
            _test.Log(Status.Info, "Creating New Scorm");
            DocumentPage.ClickButton_CheckOut();
            ContentDetailsPage.Accordians.ClickEdit_Summery();
            _test.Log(Status.Info, "Click on Edit Summery");
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7251");
            _test.Log(Status.Info, "Searching Tag.");
            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Driver.clickEleJs(By.XPath("//input[@value='Save']"));
            driver.WaitForElement(By.XPath("//h3[contains(.,'Summary')]"));
            string text = driver.gettextofelement(By.XPath("//h3[contains(.,'Summary')]"));

            StringAssert.AreEqualIgnoringCase(expectedresult, text);
            Assert.IsTrue(driver.existsElement(By.XPath("//*[contains(@class,'alert alert-success')]")));


            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            DocumentPage.ClickButton_CheckIn();
            CommonSection.SearchCatalog(scormtitle + "TC7251");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is Searched");

            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(scormtitle + "TC7251");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC7251");
            DocumentPage.ClickButton_CheckOut();
            ContentDetailsPage.Summary.ClickEdit();

            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");

            //GeneralCoursePage.SearchTagForNewContent(tagname + "TC7402");
            CreateAICCPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7251')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7251", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");

            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            CommonSection.SearchCatalog(scormtitle + "TC7251");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(scormtitle + "TC7251");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(scormtitle + "TC7251"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
Example #4
0
        public void tc_7373_Create_a_new_General_course()
        {
            CommonSection.CreateLink.GeneralCourse();

            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7373");
            _test.Log(Status.Info, "Searching Tag.");
            Assert.IsTrue(GeneralCoursePage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(GeneralCoursePage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            GeneralCoursePage.CreateGeneralCourse(GeneralCourseTitle + "TC7373", generalcoursedec);
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname + "TC7373");

            StringAssert.AreEqualIgnoringCase(tagname + "TC7373", savedTagName);
            _test.Log(Status.Pass, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(GeneralCourseTitle + "TC7373");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "TC7373");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Summary.ClickEdit();
            GeneralCoursePage.AvailableinCatalog.ClicktoUncheck();

            GeneralCoursePage.ClickSaveButton();
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is No in summary portlet");
            CommonSection.SearchCatalog(GeneralCourseTitle + "TC7373");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(GeneralCourseTitle + "TC7373"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");
            CommonSection.Manage.Training();
            TrainingPage.ManageContentPortlet.SearchForContent(GeneralCourseTitle + "TC7373");

            ManageContentPage.ResultGrid.isSeaarchedContentDisplay(GeneralCourseTitle + "TC7373");
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            tc_7375 = true;
            ManageContentPage.ClickContentTitle(GeneralCourseTitle + "TC7373");
            ContentDetailsPage.DeleteContent();
        }
        //Editing existing certification
        public void A07_ManageACertification_10879()
        {
            CommonSection.CreateLink.Certifications();
            // objCreate.FillCertificationPageByExcel(driver);
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            objCreate.FillCertificationPage("editcontent");
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(Variables.certTitle + "editcontent");
            SearchResultsPage.ClickCourseTitle(Variables.certTitle + "editcontent");
            CurriculumsPage.Edit_Click(driver);
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");
            SummaryPage.ClickSavebutton();
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname, s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            TC_10879 = true;
        }
Example #6
0
        //Creating new certification
        public void tc_10878_CreateANew_Certification()
        {
            CommonSection.CreateLink.Certifications();
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CertificationPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC10878");
            _test.Log(Status.Info, "Searching Tag.");
            CertificationPage.FillTitle(CertificatrTitle + "TC10878");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreate();
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC10878')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC10878", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(CertificatrTitle + "TC10878");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(CertificatrTitle + "TC10878"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
Example #7
0
        public void tc_7401_Create_a_new_AICC_course()
        {
            Document documentpage = new Document(driver);
            // driver.UserLogin("admin", browserstr);
            string expectedresult  = "Summary";
            string expectedresult1 = "The course was created.";
            //driver.openadminconsolepage();
            AICC    aicccourse  = new AICC(driver);
            Scorm12 CreateScorm = new Scorm12(driver);

            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            //    Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7401");
            _test.Log(Status.Info, "Searching Tag.");
            string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));

            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateAICCPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            CreateAICCPage.Title(AICCCourseTitle + "TC7401");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7401')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7401", s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(AICCCourseTitle + "TC7401");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(AICCCourseTitle + "TC7401"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
        //Creating a Subscription
        public void Z04_CreateANewSubscription_10853()
        {
            CommonSection.CreateLink.Subscription();
            //   Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");
            objCreate.FillSubscriptionPage(browserstr);
            //  Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());

            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname, s);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            //String Assertion on new Subscription creation


            //objContent.ContentSearch_Click();
            //objContentSearch.Simple_Search( Variables.subscriptionTitle+browserstr);

            //Assertion for bundle displayed on search
            //Assert.IsTrue(objContentSearch.ViewInList(Variables.subscriptionTitle + browserstr));
        }
Example #9
0
        //Creating a Bundle
        public void tc_10455_CreateANewBundle()
        {
            CommonSection.CreateLink.Bundle();

            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");

            Assert.IsTrue(BundlesPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(BundlesPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC10445", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname);

            StringAssert.AreEqualIgnoringCase(tagname, savedTagName);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(bunbdleTitle + "TC10445");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC10445");
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Summary.ClickEdit();
            BundlesPage.AvailableinCatalog.ClicktoUncheck();
            GeneralCoursePage.ClickSaveButton();
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is No in summary portlet");
            CommonSection.SearchCatalog(bunbdleTitle + "TC10445");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");
            CommonSection.Manage.Training();
            TrainingPage.ManageContentPortlet.SearchForContent(bunbdleTitle + "TC10445");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(bunbdleTitle + "TC10445"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
            tc_10574 = true;
        }
Example #10
0
        public void tc_10822_Create_Curriculum()
        {
            CommonSection.CreateLink.Curriculam();
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");
            CreateCurriculumnPage.fillTtile(curriculumtitle + "TC10822");
            CreateCurriculumnPage.SelectCollaborationSpaceOption("No");
            CreateCurriculumnPage.ClickCreatebutton();
            _test.Log(Status.Info, "A new Curriculum created");
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname);

            StringAssert.AreEqualIgnoringCase(tagname, savedTagName);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("Yes"));
            _test.Log(Status.Pass, "Verify Available in Catalog values is Yes in summary portlet");
            CommonSection.SearchCatalog(curriculumtitle + "TC10822");
            Assert.IsTrue(SearchResultsPage.isSearchResultDisplayed(curriculumtitle + "TC10822"));
            _test.Log(Status.Pass, "Verify Created content is Searched");
        }
Example #11
0
        public void tc_10823_Manager_Curriculum()
        {
            CommonSection.CreateLink.Curriculam();
            //  Assert.IsTrue(Driver.checkTagsonContentCreationPage(true));
            CreateCurriculumnPage.fillTtile(curriculumtitle + "TC10823");
            CreateCurriculumnPage.SelectCollaborationSpaceOption("No");
            CreateCurriculumnPage.ClickCreatebutton();
            _test.Log(Status.Info, "A new Curriculum created");
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(curriculumtitle + "TC10823");
            SearchResultsPage.ClickCourseTitle(curriculumtitle + "TC10823");
            ContentDetailsPage.Summary.ClickEdit();
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            GeneralCoursePage.SearchTagForNewContent(tagname);
            _test.Log(Status.Info, "Searching Tag.");
            CreateCurriculumnPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            string savedTagName = ContentDetailsPage.Summary.tagName(tagname);

            StringAssert.AreEqualIgnoringCase(tagname, savedTagName);
            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            CommonSection.SearchCatalog(curriculumtitle + "TC10823");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(curriculumtitle + "TC10823"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(curriculumtitle + "TC10823");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(curriculumtitle + "TC10823"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }
Example #12
0
        public void tc_7402_Manage_an_AICC_course()
        {
            Document documentpage = new Document(driver);

            Scorm12 CreateScorm = new Scorm12(driver);

            CommonSection.CreateLink.AICC();
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.au", By.Id("ctl00_MainContent_UC1_rau_aufile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.crs", By.Id("ctl00_MainContent_UC1_rau_crsfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.cst", By.Id("ctl00_MainContent_UC1_rau_cstfile0"));
            driver.navigateAICCfile("Data\\mv_mvet_a03_it_enus.des", By.Id("ctl00_MainContent_UC1_rau_desfile0"));
            CreateScorm.buttoncreateclick(driver, true);
            CreateAICCPage.Title(AICCCourseTitle + "TC7402");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            CommonSection.Manage.Training();
            TrainingPage.SearchRecord(AICCCourseTitle + "TC7402");

            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC7402");
            ContentDetailsPage.Summary.ClickEdit();
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");
            Assert.IsTrue(CreateCurriculumnPage.AvailableinCatalog.isChecked());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is Display");

            GeneralCoursePage.SearchTagForNewContent(tagname + "TC7402");
            CreateAICCPage.AvailableinCatalog.ClicktoUncheck();
            SummaryPage.ClickSavebutton();
            //_test.Log(Status.Info, "Searching Tag.");
            //if (!driver.existsElement(By.XPath("//*[@id='MainContent_MainContent_UC1_FormView1_CNTLCL_DESCRIPTION']")))
            //{
            //    //driver.SelectFrame();
            //    driver.GetElement(By.CssSelector("body")).ClickWithSpace();
            //    driver.GetElement(By.CssSelector("body")).SendKeysWithSpace(ExtractDataExcel.MasterDic_genralcourse["Desc"]);
            //    //  driver.SwitchTo().DefaultContent();
            //}
            //else
            //{
            //    driver.GetElement(By.XPath("//*[@id='MainContent_UC1_FormView1_CNTLCL_DESCRIPTION']")).SendKeysWithSpace(ExtractDataExcel.MasterDic_genralcourse["Desc"]);
            //}
            //driver.ClickEleJs(By.XPath("//input[@id='MainContent_MainContent_UC1_Save']"));
            //// driver.SwitchTo().DefaultContent();
            //driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]"));


            //driver.Checkin();
            // Assert.IsTrue(Driver.checkContentTagsOnDetailsPage());
            string s = Driver.GetElement(By.XPath("//strong[contains(.,'" + tagname + "TC7402')]")).Text;

            StringAssert.AreEqualIgnoringCase(tagname + "TC7402", s);

            _test.Log(Status.Info, "Assertion Pass as Searching for Tag Successfully Done");
            Assert.IsTrue(ContentDetailsPage.Summary.isAvailableinCatalog("No"));
            CommonSection.SearchCatalog(AICCCourseTitle + "TC7402");
            Assert.IsFalse(SearchResultsPage.isSearchResultDisplayed(AICCCourseTitle + "TC7402"));
            _test.Log(Status.Pass, "Verify Created content is not Searched");

            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage>>Training Page");
            TrainingPage.SearchRecord(AICCCourseTitle + "TC7402");
            _test.Log(Status.Info, "Searchched created Classroom course using manage Content portlet");
            Assert.IsTrue(ManageContentPage.ResultGrid.isSeaarchedContentDisplay(AICCCourseTitle + "TC7402"));
            _test.Log(Status.Pass, "Verify Created content is Searched through Manage content");
        }