public static bool SelectStudyProtocolTab(string ProtocolTabName) { try { return(Control_ActionUtilities.Click(DL_CreateFlagDataGroupPage.StudyVersionTab(ProtocolTabName), "Unable to click study protocol version tab.")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool SelectExpandFormIcon(string FormName) { try { return(Control_ActionUtilities.Click(DL_CreateFlagDataGroupPage.ExpandFormIcon(FormName), "Unable to Select the Form expand icon for " + FormName + "")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool SelectCheckboxForFormQuestion(string FormName, string QuestionNo, string QuestionPrmt, string ProtocolVer) { try { IControl chkBox = DL_CreateFlagDataGroupPage.GetProtocolChkBoxForFormQuestion(FormName, QuestionNo, QuestionPrmt, ProtocolVer); if (Control_PropertyUtilities.IsControlNull(chkBox)) { return(false); } return(Control_ActionUtilities.CheckCheckbox(chkBox)); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool ChkOrUnChkSelectAllEventFormChkBoxInEventFormRelation(List <FlagManagementData> EventFormData, out List <string> FailedEventForms) { FailedEventForms = new List <string>(); bool isSuccess; bool areAllEventsSuccess = true; try { foreach (FlagManagementData eventFormName in EventFormData) { if (eventFormName.CheckONOrOff.ToUpper() == "ON") { isSuccess = Control_ActionUtilities.CheckCheckbox(DL_CreateFlagDataGroupPage.GetChkBoxInFormEventRelation(eventFormName.EventName, eventFormName.FormName)); } else if (eventFormName.CheckONOrOff.ToUpper() == "OFF") { isSuccess = Control_ActionUtilities.UncheckCheckbox(DL_CreateFlagDataGroupPage.GetChkBoxInFormEventRelation(eventFormName.EventName, eventFormName.FormName)); } else { isSuccess = false; } if (!isSuccess) { FailedEventForms.Add(eventFormName.EventName + "->" + eventFormName.FormName); areAllEventsSuccess = false; } } return(areAllEventsSuccess); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool sampletest() { bool test = DL_CreateFlagDataGroupPage.SampleHdr(); return(true); }