示例#1
0
 public void b8_Remove_interest_In_Classroom_Course_Interest_14262()
 {
     CommonSection.Logout();
     _test.Log(Status.Info, "Logout of the Site Admin Account");
     LoginPage.LoginAs("ak_learner").WithPassword("").Login();
     _test.Log(Status.Info, "Login with Learner's Account");
     CommonSection.SearchCatalog("");
     _test.Log(Status.Info, "Click Catalog Search Button");
     Assert.IsTrue(SearchResultsPage.isSearchResultListDisplayed(""));
     _test.Log(Status.Pass, "Verify Search list is Displayed");
     SearchResultsPage.ClickCourseTitle("");
     _test.Log(Status.Info, "Click on Course Title");
     Assert.IsTrue(ContentDetailsPage.isDisplayed());
     _test.Log(Status.Pass, "Verify Content Details Page is Displayed");
     Assert.IsTrue(ContentDetailsPage.isExpressInterestLinkDisplayed());
     _test.Log(Status.Pass, "verify Express Interest Link is Displayed");
     ContentDetailsPage.ClickExpressInterest();
     _test.Log(Status.Info, "Click Express Interest Link");
     Assert.IsTrue(ContentDetailsPage.isExpressInterestFrameDisplayed());
     _test.Log(Status.Info, "Verify Express Interest Frame is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isReasonDisplayed());
     _test.Log(Status.Pass, "Verify Reason is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isFormatDisplayed());
     _test.Log(Status.Pass, "Verify Format is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isISeekTrainingAfterDisplayed());
     _test.Log(Status.Pass, "Verify I Seek Training After is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isISeekTrainingBeforeDisplayed());
     _test.Log(Status.Pass, "Verify I Seek Training Before is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isIPreferToTrainDisplayed());
     _test.Log(Status.Pass, "Verify I Prefer To Train is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isLocationDisplayed());
     _test.Log(Status.Pass, "Verify Location is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isAdditionalInformationDisplayed());
     _test.Log(Status.Pass, "Verify Additional Information is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isCancelButtonDisplayed());
     _test.Log(Status.Pass, "Verify Cancel Button is Displayed");
     Assert.IsTrue(ContentDetailsPage.ExpressInterest.isSubmitButtonDisplayed());
     _test.Log(Status.Pass, "Verify Submit Button is Displayed");
     ContentDetailsPage.ExpressInterest.SubmitWith("Need a different location", "No Preference", "1/8/2019",
                                                   "2/22/2019", "Mornings", "India", "Training is good for EVERYBODY");
     _test.Log(Status.Info, "Fill the Express Interest Form and submit It.");
     Assert.IsTrue(ContentDetailsPage.isDisplayed());
     _test.Log(Status.Pass, "Verify Content Details Page is Displayed");
     Assert.IsTrue(Driver.comparePartialString("The item was submitted.", ContentDetailsPage.getSuccessMessage()));//The item was submitted
     _test.Log(Status.Pass, "Verify Feedback is Displayed");
     Assert.IsFalse(ContentDetailsPage.isExpressInterestLinkDisplayed());
     _test.Log(Status.Pass, "Verify Express Interest Link  NOT is Displayed");
     Assert.IsTrue(ContentDetailsPage.isCancelInterestDisplayed());
     _test.Log(Status.Pass, "Verify Cancel Interest Link is Displayed");
     ContentDetailsPage.ClickCancelInterest();//handle Popup
     _test.Log(Status.Info, "Click Cancel Interest Link to Cancel the Request");
     Assert.IsTrue(ContentDetailsPage.isExpressInterestLinkDisplayed());
     _test.Log(Status.Pass, "Verify Express Interest Link is Displayed");
 }