public void a23_Admin_User_Search_For_Learner_From_Section_Enrollment_Tab_33599() { #region Create A Classroom Course Section And Enroll Multiple Users Into It ClassroomCoursePage.CreateClassroomCourse(classroomcoursetitle + "TC33599"); _test.Log(Status.Pass, "New Classroom Course Created"); Assert.IsTrue(Driver.comparePartialString("The item was created.", ClassroomCoursePage.GetSuccessMessage())); ManageClassroomCoursePage.Clicktab("Sections"); ManageClassroomCoursePage.CreateSection.ClickAddaNewSection(); ManageClassroomCoursePage.CreateSection.SetEnrollmentStartsDate(3); ManageClassroomCoursePage.CreateSection.SectionMaxCapacity("30"); ManageClassroomCoursePage.SelectWaitListasYes(); ManageClassroomCoursePage.CreateSection.TitleAs("Section1"); ManageClassroomCoursePage.CreateSection.Create(); #endregion Assert.IsTrue(ClassroomCoursePage.GetNewCreatedSectionLink("Section1")); _test.Log(Status.Pass, "Create New Course Section and Event"); ManageClassroomCoursePage.Sectiontab.ClickManageEnrollment(); Assert.IsTrue(ManageClassroomCoursePage.Enrollment()); ManageClassroomCoursePage.Enrollmenttab.ClickEnroll(); ManageClassroomCoursePage.BatchEnrollUserModal.EnrollUser("Site Administrator"); //Assert.IsTrue(Driver.comparePartialString("Success", ManageClassroomCoursePage.GetUpdatedSuccessMessage())); _test.Log(Status.Pass, "User Enrolled into select course successfully "); string enrolleduserName = ManageClassroomCoursePage.Enrollmenttab.EnrolledUserName(); ManageClassroomCoursePage.Enrollmenttab.ClickEnroll(); ManageClassroomCoursePage.SelectMultipleUsers(); Assert.IsTrue(ManageClassroomCoursePage.SearchForEnrolledUser("Site Administrator")); //"Regression0403012001people" _test.Log(Status.Pass, "Search Result Displayed"); ClassroomCoursePage.DeleteClassroomCourse(classroomcoursetitle + "TC33599"); }