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); }
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); }
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); }
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); }
public static API_SI_Exams ie_Back(this API_SI_Exams apiSiExams) { apiSiExams.ie_FlashButtonClick("Back "); return(apiSiExams); }
public static API_SI_Exams ie_Forward(this API_SI_Exams apiSiExams) { apiSiExams.ForwardButton = apiSiExams.ie_FlashButtonClick("Forward "); return(apiSiExams); }
public static API_SI_Exams ie_ScrollDown(this API_SI_Exams apiSiExams) { apiSiExams.ie.elements().elements("TD").first().scrollIntoView(); return(apiSiExams); }
public static API_SI_Exams startPage(this API_SI_Exams apiSiExams) { apiSiExams.ie.open(apiSiExams.ExamFile); return(apiSiExams); }