Example #1
0
        internal FindACourseSearchResultsPage SelectAttendPatternFilter(String AttendPattern)
        {
            FormCompletionHelper.ClickElement(clearFilters);
            PageInteractionHelper.WaitForPageToLoad();
            webDriver.FindElement(attendpatternfilter).Click();
            System.Threading.Thread.Sleep(2000);
            switch (AttendPattern)
            {
            case "Normal working hours":
                FormCompletionHelper.SelectCheckBox2(normal);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            case "Evening/Weekend":
                FormCompletionHelper.SelectCheckBox2(eveningweekend);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            case "Day release/Block release":
                FormCompletionHelper.SelectCheckBox2(dayblock);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            default:
                throw new Exception("attendance pattern option not found");
            }
        }
Example #2
0
        internal FindACourseSearchResultsPage SelectStudyModeFilter(String StudyMode)
        {
            webDriver.FindElement(studymodefilter).Click();
            System.Threading.Thread.Sleep(2000);
            switch (StudyMode)
            {
            case "Full-time":
                FormCompletionHelper.ClickElement(clearFilters);
                PageInteractionHelper.WaitForPageToLoad();
                FormCompletionHelper.SelectCheckBox2(fulltime);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            case "Part-time":
                FormCompletionHelper.ClickElement(clearFilters);
                PageInteractionHelper.WaitForPageToLoad();
                FormCompletionHelper.SelectCheckBox2(parttime);
                PageInteractionHelper.WaitForPageToLoad();
                //System.Threading.Thread.Sleep(3000);
                return(new FindACourseSearchResultsPage(webDriver));

            case "Flexible":
                FormCompletionHelper.ClickElement(clearFilters);
                PageInteractionHelper.WaitForPageToLoad();
                FormCompletionHelper.SelectCheckBox2(flexible);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            default:
                throw new Exception("study mode option not found");
            }
        }
Example #3
0
        internal FindACourseSearchResultsPage SelectAttendModeFilter(String AttendMode)
        {
            FormCompletionHelper.ClickElement(clearFilters);
            PageInteractionHelper.WaitForPageToLoad();
            webDriver.FindElement(attendmodefilter).Click();
            System.Threading.Thread.Sleep(2000);
            switch (AttendMode)
            {
            case "Classroom-based":
                FormCompletionHelper.SelectCheckBox2(classroom);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            case "Work-based":
                FormCompletionHelper.SelectCheckBox2(workbased);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            case "Online/Distance learning":
                FormCompletionHelper.SelectCheckBox2(online);
                PageInteractionHelper.WaitForPageToLoad();
                return(new FindACourseSearchResultsPage(webDriver));

            default:
                throw new Exception("attendance mode option not found");
            }
        }
Example #4
0
        public EditCoursePage2 SelectFirstVenue()
        {
            if (webDriver.GetType().Name.ToString().Contains("RemoteWebDriver"))
            {
                System.Threading.Thread.Sleep(1000);
                var element = this.webDriver.FindElement(FirstVenue);
                ((IJavaScriptExecutor)this.webDriver).ExecuteScript("arguments[0].click();", element);
            }
            else
            {
                PageInteractionHelper.WaitForPageToLoad();
                FormCompletionHelper.SelectCheckBox2(FirstVenue);
            }

            PageInteractionHelper.WaitForPageToLoad();
            return(new EditCoursePage2(webDriver));
        }
Example #5
0
 internal void SelectAdultEducationOption()
 {
     FormCompletionHelper.SelectCheckBox2(AdultEducationBudget);
 }
Example #6
0
 internal void SelectAdvancedLearnerOption()
 {
     FormCompletionHelper.SelectCheckBox2(AdvancedLearnerLoan);
 }
Example #7
0
 public EditCoursePage2 SelectSecondVenue()
 {
     FormCompletionHelper.SelectCheckBox2(SecondVenue);
     return(new EditCoursePage2(webDriver));
 }
Example #8
0
 public EditCoursePage2 SelectAdvancedLearnerLoan()
 {
     FormCompletionHelper.SelectCheckBox2(advancedLearnerLoan);
     return(new EditCoursePage2(webDriver));
 }
Example #9
0
 internal void SelectBlockRelease()
 {
     FormCompletionHelper.SelectCheckBox2(BlockRelease);
 }
Example #10
0
 internal void SelectDayRelease()
 {
     FormCompletionHelper.SelectCheckBox2(DayRelease);
 }
Example #11
0
 public AddCoursePage2 SelectFirstVenue()
 {
     FormCompletionHelper.SelectCheckBox2(FirstVenue);
     return(new AddCoursePage2(webDriver));
 }
Example #12
0
 internal void SelectAwardBodyFilter(string strAwardBody)
 {
     FormCompletionHelper.SelectCheckBox2(By.XPath("//input[@value='" + strAwardBody + "']"));
     //webDriver.FindElement(By.XPath("//input[@value='" + strAwardBody + "']")).Click();
 }
Example #13
0
 internal void SelectQualLevelFilter(string qualLevel)
 {
     FormCompletionHelper.SelectCheckBox2(By.XPath("//input[@value='" + qualLevel + "']"));
     //webDriver.FindElement(By.XPath("//input[@value='" + qualLevel + "']")).Click();
 }