public void A10_Test_AccessKeys_Accordian_For_AICC_35819()
 {
     #region Create AICC Course
     Document documentpage    = new Document(driver);
     string   expectedresult  = "Summary";
     string   expectedresult1 = "The course was created.";
     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);
     string actualresult = driver.gettextofelement(By.XPath("//h1[contains(.,'Summary')]"));
     Assert.IsTrue(driver.Compareregexstring(expectedresult, actualresult));
     driver.WaitForElement(By.XPath("//*[contains(@class,'alert alert-success')]"));
     Assert.IsTrue(driver.Compareregexstring(expectedresult1, driver.gettextofelement(By.XPath("//*[contains(@class,'alert alert-success')]"))));
     aicccourse.populatesummaryform(driver, browserstr);
     Assert.IsTrue(CreateScorm.buttonsaveclick(driver));
     #endregion
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     DocumentPage.ClickButton_CheckOut();
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for AICC Course");
 }
        public void A04_Test_AccessKeys_Accordian_For_ClassroomCourse_35813()
        {
            #region Create Classroom Course with Cost and Access Keys
            CommonSection.CreateLink.ClassroomCourse();
            _test.Log(Status.Info, "Opened Create Classroom Course Page");
            classroomcourse.populateClassroomform(ExtractDataExcel.MasterDic_classrommcourse["Title"] + "Create" + browserstr, ExtractDataExcel.MasterDic_classrommcourse["Desc"]);
            _test.Log(Status.Info, "Filled all required information and submit the classroom creation page");
            classroomcourse.buttonsaveclick();
            _test.Log(Status.Pass, "Verify Classroom Course saved");
            Assert.IsTrue(Driver.Instance.IsElementVisible(By.XPath("//a[@id='MainContent_MainContent_ucAccessCodes_lnkEdit']")));
            _test.Log(Status.Pass, "Access Keys According displaying for classroom course");
            Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
            _test.Log(Status.Info, "Access Keys Enabled for classroom course");
            GeneralCoursePage.setCost("5");
            _test.Log(Status.Info, "Cost Has Been Set");
            #endregion

            ManageClassroomCoursePage.Clicktab("Sections");
            ManageClassroomCoursePage.CreateSection.ClickAddaNewSection();
            ManageClassroomCoursePage.CreateSection.TitleAs("Section1");
            ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("1");
            _test.Log(Status.Pass, "Enter Section Title and Capacity");
            ManageClassroomCoursePage.SelectWaitListasYes();
            Assert.IsTrue(ManageClassroomCoursePage.setAvailable_for_Purchase());
            _test.Log(Status.Pass, "Availability for purchase detail for access keys has been set");
            ManageClassroomCoursePage.CreateSection.Create();
            _test.Log(Status.Pass, "New Section Created");
            Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1"));
            _test.Log(Status.Pass, "Classroom Course Section Created With Access Keys Enabled");
        }
 public void A10_Test_AccessKeys_Accordian_For_Scorm_35818()
 {
     CommonSection.Learn.Home();
     CommonSection.CreteNewScorm(scormtitle + "AK");
     _test.Log(Status.Info, "New Scorm Course Created");
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for Scorm Course");
 }
 public void A09_Test_AccessKeys_Accordian_For_GeneralCourse_35817()
 {
     CommonSection.Learn.Home();
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse + "AK", "Test General Course");
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for General Course");
 }
 public void A05_Test_AccessKeys_Accordian_For_Bundle_35814()
 {
     #region Create General Course and Bundle With Cost and Access keys Enabled
     CommonSection.CreateLink.GeneralCourse();
     _test.Log(Status.Info, "Creating a Paid General Course");
     GeneralCoursePage.CreateGeneralCourse(generalcourse, "Test General Course");
     GeneralCoursePage.setCost("5");
     DocumentPage.ClickButton_CheckIn();
     _test.Log(Status.Info, "Paid general course created");
     CommonSection.Learn.Home();
     CommonSection.CreateLink.Bundle();
     _test.Log(Status.Info, "Creating a Paid Bundle Course with Access Keys");
     objCreate.FillBundlePage(browserstr);
     GeneralCoursePage.setCost("5");
     _test.Log(Status.Info, "Cost Has Been Set");
     Assert.IsTrue(ClassroomCoursePage.enableAccessKeys());
     _test.Log(Status.Info, "Access Keys Accordian Has been verfiied for Bundle Course");
     #endregion
 }