예제 #1
0
 public static API_SI_Exams ie_Submit(this API_SI_Exams apiSiExams)
 {
     apiSiExams.SubmitButton = apiSiExams.ie_FlashButtonClick("Submit");
     if (apiSiExams.SubmitButton.notNull())
     {
         "Got SubmitButton".debug();
     }
     return(apiSiExams);
 }
예제 #2
0
        public static White.Core.UIItems.Button  ie_FlashButtonClick(this API_SI_Exams apiSiExams, string buttonName)
        {
            apiSiExams.ie_ScrollDown();
            "getting button reference".info();
            var button = apiSiExams.guiAutomationWindow.button(buttonName);

            if (button.notNull())
            {
                "[ie_FlashButtonClick] got button reference".debug();
                button.mouse();
                apiSiExams.guiAutomation.mouse_Click();
            }
            else
            {
                "[ie_FlashButtonClick] could not get button reference for: {0}".error(buttonName);
            }
            return(button);
        }
예제 #3
0
        public static API_SI_Exams ie_ClickRadioButton(this API_SI_Exams apiSiExams)
        {
            if (apiSiExams.radioButtons.isNull())
            {
                "Finding RadioButtons".info();
                apiSiExams.radioButtons = apiSiExams.guiAutomationWindow.radioButtons();
            }
            else
            {
                "reusing RadioButtons".info();
            }
            var radioButtons = apiSiExams.radioButtons;

            if (radioButtons.size() > 0)
            {
                "[ie_ClickRadioButton] Found {0} CheckBoxes".debug(radioButtons.size());
                radioButtons[0].Click();
                show.info(radioButtons[0]);
            }
            else
            {
                "[ie_ClickRadioButton] There where no radioButtons in guiAutomationExamGroupBox".debug();

                /*radioButtons = apiSiExams.guiAutomationWindow.radioButtons();
                 * if (radioButtons.size() > 0)
                 * {
                 *      "[ie_ClickCheckBox] Found {0} CheckBoxes".debug(radioButtons.size());
                 *      radioButtons[0].Click();
                 * }
                 * else
                 * {
                 *      "[ie_ClickCheckBox] There where no CheckBoxes in guiAutomationWindow".debug();
                 * }*/
            }

            return(apiSiExams);
        }
예제 #4
0
        public static API_SI_Exams ie_ClickCheckBox(this API_SI_Exams apiSiExams)
        {
            if (apiSiExams.checkBoxes.isNull())
            {
                "Finding CheckBoxes".info();
                apiSiExams.checkBoxes = apiSiExams.guiAutomationWindow.checkBoxes();
            }
            else
            {
                "reusing checkboxes".info();
            }
            var checkBoxes = apiSiExams.checkBoxes;

            if (checkBoxes.size() > 0)
            {
                "[ie_ClickCheckBox] Found {0} CheckBoxes".debug(checkBoxes.size());
                checkBoxes[0].Click();
                show.info(checkBoxes[0]);
            }
            else
            {
                "[ie_ClickCheckBox] There where no CheckBoxes in guiAutomationExamGroupBox".debug();

                /*	checkBoxes = apiSiExams.guiAutomationWindow.checkBoxes();
                 *      if (checkBoxes.size() > 0)
                 *      {
                 *              "[ie_ClickCheckBox] Found {0} CheckBoxes".debug(checkBoxes.size());
                 *              checkBoxes[0].Click();
                 *      }
                 *      else
                 *      {
                 *              "[ie_ClickCheckBox] There where no CheckBoxes in guiAutomationWindow".debug();
                 *      }*/
            }

            return(apiSiExams);
        }
예제 #5
0
 public static API_SI_Exams ie_Back(this API_SI_Exams apiSiExams)
 {
     apiSiExams.ie_FlashButtonClick("Back ");
     return(apiSiExams);
 }
예제 #6
0
 public static API_SI_Exams ie_Forward(this API_SI_Exams apiSiExams)
 {
     apiSiExams.ForwardButton = apiSiExams.ie_FlashButtonClick("Forward ");
     return(apiSiExams);
 }
예제 #7
0
 public static API_SI_Exams ie_ScrollDown(this API_SI_Exams apiSiExams)
 {
     apiSiExams.ie.elements().elements("TD").first().scrollIntoView();
     return(apiSiExams);
 }
예제 #8
0
 public static API_SI_Exams startPage(this API_SI_Exams apiSiExams)
 {
     apiSiExams.ie.open(apiSiExams.ExamFile);
     return(apiSiExams);
 }