public void P20_1_tc_26288_Add_Test_to_Cart()
        {
            CommonSection.Administer.ContentManagement.Tests();
            TestsPage.ClickCreateNew();
            TestwizardPage.CreateNewTest(TestTitle + "_TC26288");
            _test.Log(Status.Info, "A New test created");
            TestwizardPage.addCosttoTest("5");
            _test.Log(Status.Info, "Upload any Image file to content");
            TestwizardPage.checkin();
            CommonSection.Logout();
            LoginPage.LoginAs("srlearner103").WithPassword("").Login();
            CommonSection.SearchCatalog(TestTitle + "_TC26288");
            SearchResultsPage.ClickCourseTitle(TestTitle + "_TC26288");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.isAddtoCartbuttondisplay());
            _test.Log(Status.Pass, "Verify Add to Cart button display");
            ContentDetailsPage.OverviewTab.click_AddtoCart();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.AddtoCartportlet.isTestAddedtoCart());
            CommonSection.ClickShoppingCart();

            ShoppingCartPage.CompletePurchaseProcess();
            OrderPage.Click_Purchased_Content(TestTitle + "_TC26288");
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Costportlet.isViewOrderlinkDisplay());
            _test.Log(Status.Pass, "Verify view order link display on Add to Cart portlet");
            ContentDetailsPage.OverviewTab.Costportlet.ClickViewOrderlink();

            Assert.IsTrue(OrderDetailsPage.VerifyPurchasedContent(TestTitle + "_TC26288"));
            TC26378 = true;
        }
        public void P20_1_a01_Add_SCROM_Course_to_Cart_26227()
        {
            CommonSection.CreteNewScorm(scormtitle + "TC26227");
            _test.Log(Status.Info, "Creating New Scorm");
            Assert.IsTrue(ContentDetailsPage.IsContentCreated());
            _test.Log(Status.Pass, "Verify New Scorm Course is Created");

            Assert.IsTrue(ContentDetailsPage.isCostNSalesTaxAccordiandisplayed());
            _test.Log(Status.Pass, "Verify Cost and Sales Tax Accordian Display");

            ContentDetailsPage.Accordians.ClickEdit_CostNSalesTax();
            _test.Log(Status.Info, "Click on Cost & SalesTax Accordian Edit button");
            Assert.IsTrue(CostPage.VerifyDifferentPortlets());
            _test.Log(Status.Pass, "Verify the Manage Sales Tax, Default Cost, Alternate Costs, Pricing Schedules sections are displayed");

            CostPage.DefaultCostAs("15").Save();
            _test.Log(Status.Info, "Enter Defailt Cost and Click Save");
            Assert.IsTrue(CostPage.Successmessage("The default cost was saved."));
            _test.Log(Status.Pass, "Verfy Default cost is saved");
            ContentDetailsPage.Click_Check_in();
            CommonSection.Logout();

            LoginPage.LoginAs("srlearner101").WithPassword("").Login();
            CommonSection.SearchCatalog('"' + scormtitle + "TC26227" + '"'); // Search for Bundle that has Promotional Video
            _test.Log(Status.Info, "Searched" + scormtitle + "TC26227" + "from Catalog");
            SearchResultsPage.ClickCourseTitle(scormtitle + "TC26227");      // Click on Bundle Title
            _test.Log(Status.Info, "Clicked searched course title");
            Assert.IsTrue(ContentDetailsPage.isAddToCartButtonDisplayed());  //57254 AC6
            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());
            CommonSection.ClickShoppingCart();

            ShoppingCartPage.CompletePurchaseProcess();
            OrderPage.Click_PurchasedContentTitle();
            Assert.IsTrue(ContentDetailsPage.OverviewTab.Costportlet.isViewOrderlinkDisplay());
            ContentDetailsPage.OverviewTab.Costportlet.ClickViewOrderlink();
            Assert.IsTrue(OrderDetailsPage.VerifyPurchasedContent(scormtitle + "TC26227"));
            TC26372 = true;
            TC57930 = true;
        }
 //[Test, Order(07), Category("AutomatedP11")]
 public void z08_Add_Items_to_Public_Catalog_Cart_and_Checkout_23474()
 {
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout from User");
     LoginPage.ClickBrowsePublicCatalogLink();
     // Driver.Instance.Navigate().GoToUrl("https://prdct-mg-19-1.mksi-lms.net/Public/TrainingCatalog.aspx");
     _test.Log(Status.Info, "Navigate to public catalog URL");
     SearchResultsPage.ClickCourseTitle("CRCTitle1910293729TC27023_NewEnroll");
     _test.Log(Status.Info, "Click on first course display on Search result Pagr");
     ContentDetailsPage.ClickAddtoCart();
     _test.Log(Status.Info, "Click on Add to Cart button");
     Assert.IsTrue(ContentDetailsPage.getFeedbackMessage("The item was added to the cart."));
     CommonSection.ClickShoppingCart();
     _test.Log(Status.Info, "Click on Shopping Cart");
     //ShoppingCarts.completePurchaseProcess();
     ShoppingCartPage.ClickCheckout_public();
     ShoppingCartPage.CheckOutModal.Login();
     LoginPage.LoginAs("userreg_0210112911anybrowser").WithPassword("").Login();
     Assert.IsTrue(ShoppingCartPage.Title("Shopping Cart"));
     ShoppingCartPage.CompletePurchaseProcess();
     OrderPage.Click_PurchasedContentTitle();
     Assert.IsTrue(ContentDetailsPage.isOpenItembuttonDisplay());
     _test.Log(Status.Pass, "Verify Purchased item Accessed to User");
 }