/// <summary> /// Search Course In Right Frame. /// </summary> /// <param name="searchCriteriaRadioButtonEnum">This is search criteria radio button option.</param> /// <param name="searchParameter">This is search Parameter.</param> /// <param name="dropdownOptionName">This is Dropdown Option Name.</param> public void SearchCourse(SearchRadioButtonEnum searchCriteriaRadioButtonEnum, String searchParameter, String dropdownOptionName) { //Search Course and Course Found in Course Grid Logger.LogMethodEntry("SearchCoursesPage", "SearchCourse", base.IsTakeScreenShotDuringEntryExit); try { //Select Window this.SelectCourseEnrollmentWindow(); //Click on New Searck Link this.ClickOnNewSearchLink(); //Select Right Frame this.SelectIFrameRight(); //Select Radio Button this.SelectRadioButton(searchCriteriaRadioButtonEnum); //Select Dropdown Option this.SelectFilterDropdownOption(dropdownOptionName); //Enter Search Parameter In the Search Box this.EnterSearchParameterInTheSearchBox(searchParameter); //Click on Search Button this.ClickOnSearchButton(); } catch (Exception e) { ExceptionHandler.HandleException(e); } Logger.LogMethodExit("SearchCoursesPage", "SearchCourse", base.IsTakeScreenShotDuringEntryExit); }
/// <summary> /// Select Radio Button. /// </summary> /// <param name="searchRadioButton">This is Search Radio Button.</param> private void SelectRadioButton( SearchRadioButtonEnum searchRadioButton) { //Select Radio Button Logger.LogMethodEntry("SearchCoursesPage", "SelectRadioButton", base.IsTakeScreenShotDuringEntryExit); switch (searchRadioButton) { case SearchRadioButtonEnum.CourseName: base.WaitForElement(By.Id(SearchCoursesPageResource .SearchCourses_Page_CourseName_RadioButton_Id)); //Select Course Name Radio Button base.SelectRadioButtonById(SearchCoursesPageResource .SearchCourses_Page_CourseName_RadioButton_Id); break; case SearchRadioButtonEnum.WSId: base.WaitForElement(By.Id(SearchCoursesPageResource. SearchCourses_Page_WSId_RadioButton_Id)); //Select Course Name Radio Button base.SelectRadioButtonById((SearchCoursesPageResource. SearchCourses_Page_WSId_RadioButton_Id)); break; } Logger.LogMethodExit("SearchCoursesPage", "SelectRadioButton", base.IsTakeScreenShotDuringEntryExit); }