public void tc_59996_AICC_Banner_Actions_Add_To_Cart()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            #region Create a AICC course
            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);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC59996");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Document");
            ContentDetailsPage.ClickEditContent_New19_2();
            _test.Log(Status.Info, "Click Edit Content");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();

            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            _test.Log(Status.Pass, "Add to Cart Button is Displayed");
        }
Exemple #2
0
        public void P20_1_tc_57035_Bundle_Access_Key()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC57035");
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.CreateLink.Bundle();
            _test.Log(Status.Info, "Click create>Subscriptions");
            CreatebundlePage.CreateBundle("Content Bundle", bunbdleTitle + "TC57035", "Bundle Price");
            _test.Log(Status.Info, "Create a new Content Bundle");
            AdminContentDetailsPage.AddContentToBundle(GeneralCourseTitle + "_TC57035");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Accordians.ClickEdit_AccessKey();
            AccessKeysPage.EnableAccessKey("Yes").Save();
            DocumentPage.ClickButton_CheckIn();
            //Driver.CreateNewAccount();
            // _test.Log(Status.Info, "Create new user account");
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            CommonSection.SearchCatalog(bunbdleTitle + "TC57035");
            SearchResultsPage.ClickCourseTitle(bunbdleTitle + "TC57035");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            ContentDetailsPage.OverviewTab.click_AddtoCart();

            CommonSection.Completepurchage(bunbdleTitle + "TC57035");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            Assert.IsTrue(ContentDetailsPage.isContentTabSelected());
            Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyEnrolledinSectionwithAccessKey());
            TC57459_2 = true;
        }
Exemple #3
0
        public void tc_26327_Add_Certification_To_Cart()
        {
            CommonSection.CreateLink.Certifications();
            _test.Log(Status.Info, "Click create>certification");
            CertificationPage.FillTitle(CertificatrTitle + "TC26327");
            _test.Log(Status.Info, "Fill title");
            CertificationPage.ClickCreateCertification();
            _test.Log(Status.Info, "Click create");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.Click_Check_in();
            //CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26327" + '"'); // Search for Bundle that has Promotional Video
            //_test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26327" + "from Catalog");
            //SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26327"); // Click on Bundle Title
            //_test.Log(Status.Info, "Clicked searched course title");
            //ContentDetailsPage.Click_CheckOut();
            //ContentDetailsPage.ClickEditContent_New19_2();
            //AdminContentDetailsPage.AddCost();
            //ContentDetailsPage.Click_Check_in();

            CommonSection.SearchCatalog('"' + CertificatrTitle + "TC26327" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + CertificatrTitle + "TC26327" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(CertificatrTitle + "TC26327");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());
            ContentDetailsPage.ClickAddtoCart_GeneralCourse();
            StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different");
            Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay());
            Assert.IsTrue(CommonSection.isCountincrease_ShopingCart());
        }
Exemple #4
0
        public void b22_Request_Access_to_Document_with_cost_27018()
        {
            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login with siteadmin Account");
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Document");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click Edit Content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Edit Content");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign approval path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check-In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as Learner");

            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login with learner Account");
            CommonSection.SearchCatalog(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Click on Course Title");
            ContentDetailsPage.ClickRequestAccess();
            _test.Log(Status.Info, "Click Access Request");
            Assert.IsFalse(ContentDetailsPage.isAddToCartButtonDisplayed());
            _test.Log(Status.Pass, "Add to Cart Button is Displayed");

            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("siteadmin").WithPassword("").Login();
            _test.Log(Status.Info, "Login with siteadmin Account");
            CommonSection.Manage.ApprovalRequests();
            _test.Log(Status.Info, "Click on Approval Request ");
            ApprovalRequestsPage.PendingMyApproval.Approve(DocumentTitle + "TC26018", "Request Accepted");
            _test.Log(Status.Info, "Approve request");
            CommonSection.Logout();
            _test.Log(Status.Info, "logout of current Account");
            LoginPage.LoginAs("ak_learner").WithPassword("").Login();
            _test.Log(Status.Info, "Login with learner Account");
            CommonSection.SearchCatalog(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Search for the Certification Course Title");
            SearchResultsPage.ClickCourseTitle(DocumentTitle + "TC26018");
            _test.Log(Status.Info, "Click on Course Title");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());
            _test.Log(Status.Pass, "Add to Cart Button is Displayed");
        }
        public void P20_1_tc_26953_View_Prerequisities_to_AICC_Course()
        {
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "TC26953");
            _test.Log(Status.Info, "Create a general Course for Prerequisite");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            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);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC26953");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Edit_Prerequisites(GeneralCourseTitle + "TC26953");
            _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite");
            //Assert.IsTrue(Driver.comparePartialString(" The selected items were added as prerequisites." +
            //    " If values were entered for any prerequisite's attributes, then these values were saved.", PrerequisitesPage.GetSuccessMessage()));
            //_test.Log(Status.Pass, "Verify  Success message");
            PrerequisitesPage.Click_BreadCrumb();
            _test.Log(Status.Pass, "Click breadcrumbs");
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click on Check In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click on View As Learner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
            _test.Log(Status.Pass, "Verify prerequisite Accordian is Displayed");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isPrereqisiteRequiredmessageDisplay("Complete 1 prerequisites to continue"));
            _test.Log(Status.Pass, "Verify  information");

            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPrerequisiteStatusDisplayed());
            _test.Log(Status.Pass, "Verify prerequisite status is Displayed");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPrerequisiteCostDisplayed());
            _test.Log(Status.Pass, "Verify prerequisite Cost is Displayed");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Prerequisiteportlet.isPrerequisiteTitleDisplayed());
            _test.Log(Status.Pass, "Verify prerequisite Cost is Displayed");
            ContentDetailsPage.OverviewTab.Prerequisiteportlet.ClickPrerequisiteContentTitle(GeneralCourseTitle + "TC26953");
            _test.Log(Status.Info, "Click Prerequisite Title");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(GeneralCourseTitle + "TC26953"));
        }
 public void tc_59832_As_learner_Add_to_Cart_Multipl_Item_purchased_by_Access_Key()
 {
     CommonSection.CreteNewDocuemnt(DocumentTitle + "TC7018");
     _test.Log(Status.Info, "Create a Document");
     AdminContentDetailsPage.AddCost();
     _test.Log(Status.Info, "Add cost to Document");
     ContentDetailsPage.ClickEditContent_New19_2();
     _test.Log(Status.Info, "Click Edit Content");
     AdminContentDetailsPage.EnableAccessKeys();
     DocumentPage.ClickButton_CheckIn();
     AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
     Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
     _test.Log(Status.Pass, "Add to Cart Button is Displayed");
     Assert.IsTrue(ContentDetailsPage.OverviewTab.AccessKeyQuentitydisplay());
     _test.Log(Status.Pass, "Add to Cart Button is Displayed with Access Key Quentity field");
 }
        public void tc_60459_Public_catalog_banner_actions_for_AICC()
        {
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC60459");
            _test.Log(Status.Info, "Create a general Course for Prerequisite");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            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);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC60459");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");
            ContentDetailsPage.Edit_Prerequisites(generalcoursetitle + "TC60459");
            _test.Log(Status.Pass, "Click edit Prerequisite and add Prerequisite");
            PrerequisitesPage.Click_BreadCrumb();
            _test.Log(Status.Pass, "Click breadcrumbs");
            ContentDetailsPage.Accordians.ClickEdit_Image();
            ImagePage.UploadnewImageFile();
            _test.Log(Status.Info, "Upload any Image file to content");
            ContentDetailsPage.Click_editContentSharing();
            ContentSharingPage.PublishtoPublishcatalog();
            ContentDetailsPage.Click_Check_in();
            _test.Log(Status.Info, "Click on Check In");

            CommonSection.Logout();
            LoginPage.ClickBrowsePublicCatalogLink();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC60459");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60459");
            Assert.IsTrue(ContentDetailsPage.isBradCrumbdisplay());
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC60459"));
            _test.Log(Status.Pass, "Verify Content title is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTypedisplay());
            _test.Log(Status.Pass, "Verify Content type is display on Banner");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentImagedisplay());
            _test.Log(Status.Pass, "Verify Image is display on Banner");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPrerequisitePortletDisplay());
        }
        public void tc_59840_AICC_Overview_Tab_Learner_finds_What_is_content_About()
        {
            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);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC59840");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Document is Created");

            AdminContentDetailsPage.CourseInformation.ClickEditButton();
            CourseInformationPage.CourseProvider.Select("Meridian");
            CourseInformationPage.EnterDuration("5");
            CourseInformationPage.clickSave();

            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.CreditTypeAccordian.ClickManage();
            NewCreditTypePage.AddDefaultCreditValue("5");

            ContentDetailsPage.PromotionalVideo.Click_Edit();
            PromotionalVideoPage.AddNewURL("//www.youtube.com/embed/Fc1P-AEaEp8");
            PromotionalVideoPage.Click_SaveButton();
            DocumentPage.ClickButton_CheckIn();
            _test.Log(Status.Info, "Aicc course checked in");

            CommonSection.SearchCatalog(AICCCourseTitle + "TC59840");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC59840");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isContentTitledisplay(AICCCourseTitle + "TC59840"));
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isDescriptionDisplay());      //AC1
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isCourseProviderDisplay());   //AC3
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isDurationDisplay());         //AC2
            Assert.IsTrue(ContentDetailsPage.OverviewTab.CreditPortlet.isCreditScoreDisplay() >= 0);
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isPromotionalVideodisplay()); //Verify the Promotional Video is displayed
            _test.Log(Status.Pass, "Verified Promotional Video display in content details page overview tab");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
        }
Exemple #9
0
        public void a05_Add_General_Course_to_Cart_26229()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC26229");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            #endregion

            CommonSection.SearchCatalog(GeneralCourseTitle + "_TC26229");
            SearchResultsPage.ClickCourseTitle(GeneralCourseTitle + "_TC26229");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());

            ContentDetailsPage.ClickAddtoCart_GeneralCourse();
            // StringAssert.AreEqualIgnoringCase("Success\r\nThe item was added to the cart.\r\n×", Driver.getSuccessMessage(), "Error message is different");

            Assert.IsTrue(ContentDetailsPage.ClickAddtoCartPortlet.isAddedtocardinfodisplay());
            Assert.IsTrue(CommonSection.isCountincrease_ShopingCart());
        }
Exemple #10
0
        public void b17_Add_Document_to_Cart_26205()
        {
            CommonSection.CreteNewDocuemnt(DocumentTitle + "TC26205");
            _test.Log(Status.Info, "Create a Document");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Click edit Cost and Add Cost to document");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click Check In Button");
            AdminContentDetailsPage.ClickCheckInbutton();

            _test.Log(Status.Info, "Click Check-In");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click on view as learner");

            ContentDetailsPage.ClickAddtoCart();
            _test.Log(Status.Info, "Click on Add to cart");

            Assert.IsTrue(Driver.comparePartialString("The item was added to the cart.", ContentDetailsPage.AddToCartSuccessMessage()));
            _test.Log(Status.Pass, "Verify the Content added to cart message");
        }
        public void P20_1_tc_56398_User_Views_Access_Key_usage_info_when_enrolling_in_curriculum()
        {
            #region Create a general course
            CommonSection.CreateGeneralCourse(GeneralCourseTitle + "_TC56398");
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            DocumentPage.ClickButton_CheckIn();
            #endregion
            #region Create a curriculum
            CommonSection.CreteNewCurriculumn(curriculamtitle + "_TC56398");
            _test.Log(Status.Info, "Create A new Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            CurriculumContentPage.ClickAddCurriculumBlock();
            CurriculumContentPage.AddCurriculumBlock.AddBlockAs(block + "_UnOrdered" + "_TC56398");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(GeneralCourseTitle + "_TC56398");
            CurriculumContentPage.ClickBackbutton();
            ContentDetailsPage.Accordians.ClickEdit_CostNSalesTax();
            CostPage.DefaultCostAs("5").Save();
            CostPage.ClickReturn();
            ContentDetailsPage.Accordians.ClickEdit_AccessKey();
            AccessKeysPage.EnableAccessKey("Yes").Save();
            DocumentPage.ClickButton_CheckIn();
            #endregion
            CommonSection.SearchCatalog(curriculamtitle + "_TC51560");
            _test.Log(Status.Info, "Enter curriculum title in global search box");
            SearchResultsPage.ClickCourseTitle(curriculamtitle + "_TC51560");
            _test.Log(Status.Info, "Click on search result from catalog");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            ContentDetailsPage.OverviewTab.click_AddtoCart();

            CommonSection.Completepurchage(curriculamtitle + "_TC51560");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_Startbutton();
            Assert.IsTrue(ContentDetailsPage.isContentTabSelected());
            Assert.IsTrue(ContentDetailsPage.isHistoryTabDisplay_GeneralCourse());
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyEnrolledinSectionwithAccessKey());
        }
        public void tc_60021_AICC_Banner_Actions_Access_Keys()
        {
            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);
            _test.Log(Status.Info, "AICC files are uploaded");

            CreateAICCPage.Title(AICCCourseTitle + "TC60021");
            EditSummaryPage.ClickSavebutton();
            _test.Log(Status.Info, "Create a new AICC Course");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            AdminContentDetailsPage.AddCost();
            ContentDetailsPage.ClickEditContent_New19_2();
            ContentDetailsPage.Accordians.ClickEdit_AccessKey();
            AccessKeysPage.EnableAccessKey("Yes").Save();
            DocumentPage.ClickButton_CheckIn();
            //Driver.CreateNewAccount();
            // _test.Log(Status.Info, "Create new user account");
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner105").WithPassword("").Login();
            CommonSection.SearchCatalog(AICCCourseTitle + "TC60021");
            SearchResultsPage.ClickCourseTitle(AICCCourseTitle + "TC60021");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            ContentDetailsPage.OverviewTab.click_AddtoCart();

            CommonSection.Completepurchage(AICCCourseTitle + "TC60021");
            Assert.IsTrue(ContentDetailsPage.ContentBanner.isOpenItembuttonDisplay());
            ContentDetailsPage.ContentBanner.Click_Enrollbutton();

            Assert.IsTrue(ContentDetailsPage.ContentBanner.isStartbuttonDisplay());
        }
        public void a07_Restart_Linear_Curriculum_35888()
        {
            #region
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Course");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Access Approval Edit Button");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign Approver path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click checkIn Button");
            CommonSection.CreateGeneralCourse(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Create general Course");
            AdminContentDetailsPage.AddCost();
            _test.Log(Status.Info, "Add cost to Course");
            ContentDetailsPage.ClickEditContent();
            _test.Log(Status.Info, "Click on Edit content");
            AdminContentDetailsPage.AccessApproval.ClickEditButton();
            _test.Log(Status.Info, "Click Access Approval Edit Button");
            AccessApprovalPage.AssignApproverPath();
            _test.Log(Status.Info, "Assign Approver path");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click checkIn Button");
            #endregion

            CommonSection.CreteNewCurriculumn(curriculamtitle + "TC35888");
            _test.Log(Status.Info, "Create Curriculum");
            ContentDetailsPage.ClickCurriculumContentEditButton();
            _test.Log(Status.Info, "Click Edit Content for Curriculum");
            ContentDetailsPage.ClickAddCurriculumBlock();
            _test.Log(Status.Info, "Click Curriculum content Block");

            CurriculumContentPage.AddCurriculumBlock.AddBlockAs_OrderedType("ak_1");
            _test.Log(Status.Info, "Add Curriculum Block");

            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Add training Activities");
            CurriculumContentPage.AddTrainingActivities_UnOrdered(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Add training Activities");
            AdminContentDetailsPage.ClickCheckInbutton();
            _test.Log(Status.Info, "Click Check In button");
            AdminContentDetailsPage.DropDownToggle.ViewAsLearner();
            _test.Log(Status.Info, "Click view as learner");
            ContentDetailsPage.ClickCurriculumnEnroll();
            _test.Log(Status.Info, "Click Enroll Button");
            ContentDetailsPage.Click_ContentTab();
            _test.Log(Status.Info, "Click on  Content Tab");
            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Not Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Not Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888"));
            _test.Log(Status.Pass, "Verify Start button is Displayed");
            Assert.IsFalse(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888ak"));
            _test.Log(Status.Pass, "Verify Start button is Not Displayed");


            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35888");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.CompleteCurriculumnContent();
            _test.Log(Status.Info, "Complete General Course");
            // ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Completed"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStartButtonDisplayed(generalcoursetitle + "TC35888ak"));
            _test.Log(Status.Pass, "Verify Start button is Not Displayed");

            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            //_test.Log(Status.Info, "Click on  Content Tab");
            ContentDetailsPage.CurriculumContentTab.ClickStartGeneralCourse(generalcoursetitle + "TC35888ak");
            _test.Log(Status.Info, "Launch first General Course");
            ContentDetailsPage.MarkComplete_Curriculum();
            _test.Log(Status.Info, "Complete General Course");
            ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            _test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Completed"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");

            Assert.IsTrue(ContentDetailsPage.IsRestartCurriculumDisplayed());
            _test.Log(Status.Pass, "Verify Restart Curriculum is Displayed");

            ContentDetailsPage.ClickRetakeCurriculum_DissmissAlert();
            _test.Log(Status.Pass, "Click restart Curriculum");
            ContentDetailsPage.ClickRetakeCurriculum_AcceptAlert();
            _test.Log(Status.Pass, "Click restart Curriculum");
            //ContentDetailsPage.CurriculumContentTab.ClickCurriculumContentBlock();
            // _test.Log(Status.Info, "Click on  Content Tab");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888", "Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            Assert.IsTrue(ContentDetailsPage.CurriculumContentTab.VerifyStatus(generalcoursetitle + "TC35888ak", "Enrolled"));
            _test.Log(Status.Pass, "Verify Status of the content of content Block");
            ContentDetailsPage.Click_HistoryTab_Curriculum();
            _test.Log(Status.Info, "Click History Tab");
            Assert.IsTrue(ContentDetailsPage.HistoryTab.VerifyRestartedCurriculum());
            _test.Log(Status.Pass, "Verify in history tab Curriculum is restarted is mentioned");
        }