public void P20_1_b16_Certifications_Containing_a_Document_27200() { CommonSection.CreteNewDocuemnt(DocumentTitle + "TC27200"); _test.Log(Status.Info, "Create a Document"); AdminContentDetailsPage.ClickCheckInbutton(); _test.Log(Status.Info, "Click Check In Button"); CommonSection.CreateLink.Certifications(); _test.Log(Status.Info, "Click on Certification"); CertificationPage.FillTitle(CertificatrTitle + "TC27200"); _test.Log(Status.Info, "Create a Certification course"); CertificationPage.SelectDropDown.CompletionCriteriaAs("Content is completed in ANY order (Non-Linear) (Non-Linear)"); _test.Log(Status.Info, "Select Completion Criteria "); CertificationPage.Radiobutton.SelectCertificationexpireAs("No"); _test.Log(Status.Info, "Select Certification expiry"); CertificationPage.Radiobutton.IncludePastContentCompletionAs("No"); _test.Log(Status.Info, "Select option Includes Past Content Completion"); CertificationPage.Radiobutton.SelectAllowReCertificationAs("Yes"); _test.Log(Status.Info, "Select Allow Re-Certification"); CertificationPage.Radiobutton.CertificationCostTypeAs(""); _test.Log(Status.Info, "Select Certification Cost Type"); CertificationPage.CreateCertification(); _test.Log(Status.Info, "Click on Create Button"); //CertificationPage.VerifySuccessMessageText("The item was created."); CertificationPage.AddContentInCertification("AddingWaitlistMembers_Bug"); _test.Log(Status.Info, "Add Content in Certification"); CertificationPage.CheckIn(); _test.Log(Status.Info, "Click on CheckIn"); CommonSection.SearchCatalog(CertificatrTitle + "TC27200"); _test.Log(Status.Info, "Search for the Certification Course Title"); SearchResultsPage.ClickCourseTitle(bundleTitle + "TC27200"); _test.Log(Status.Info, "Click on Course Title"); Assert.IsTrue((Driver.comparePartialString("You do not have a certification status for this certification.", ContentDetailsPage.getInformativeMessage()))); _test.Log(Status.Pass, "Verify information is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationTypeDisplayed()); _test.Log(Status.Pass, "Verify Certification Type is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationCostTypeDisplayed()); _test.Log(Status.Pass, "Verify Certification Cost Type is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationPeriodDisplayed()); _test.Log(Status.Pass, "Verify Certification Period is Displayed"); Assert.IsTrue(ContentDetailsPage.isAccessItemButtonDisplayed()); _test.Log(Status.Pass, "Verify Access Button is Displayed"); Assert.IsTrue(ContentDetailsPage.isObjectivesBlockDisplayed()); _test.Log(Status.Pass, "Verify Objective Block is Displayed"); Assert.IsTrue(ContentDetailsPage.isAlternateOptionsBlockDisplayed()); _test.Log(Status.Pass, "Verify Alternate Option Block is Displayed"); Assert.IsTrue(ContentDetailsPage.isCertificationContentBlockDisplayed()); _test.Log(Status.Pass, "Verify Certification Content Block is Displayed"); ContentDetailsPage.ClickAccessItem(); _test.Log(Status.Info, "Click on Access Item"); Assert.IsTrue((Driver.comparePartialString(" You first accessed this item on 1/25/2019. ", ContentDetailsPage.getAccessDateMessage()))); _test.Log(Status.Pass, "Verify Certification Content Block is Displayed"); ContentDetailsPage.ClickCertificationClassroom(); _test.Log(Status.Pass, "click on Certification Classroom"); Assert.IsTrue((Driver.comparePartialString("You are enrolled in a current section for this classroom course.", ContentDetailsPage.getCertificationEnrolledMessage()))); _test.Log(Status.Pass, "Verify Information is Displayed"); Assert.IsTrue(Driver.isSuggestedCertificationDisplayed()); _test.Log(Status.Pass, "Verify Suggested Certification is displayed"); Assert.IsTrue(Driver.SuggestedCertifications.isCertificationTitleDisplayed()); _test.Log(Status.Pass, "Verify Certification Title is Displayed"); Assert.IsTrue(Driver.SuggestedCertifications.isCertificationCostDisplayed()); _test.Log(Status.Pass, "Verify Certification Cost is Displayed"); }