예제 #1
0
 public void WhenIEnterCommentsInMarkItemDialog(String comment)
 {
     if (!BP_Modal_CRF_MarkItemUtilities.EnterComment(comment))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #2
0
 public void WhenIClickOkButtonInMarkItemDialog()
 {
     if (!BP_Modal_CRF_MarkItemUtilities.ClickOkButton())
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #3
0
 static bool SelectForm(SignCasebookData data)
 {
     try
     {
         IControl radioButton = DL_SignCasebookPage.GetRadioButton(data.EventName, data.FormName, data.RadioButton);
         if (!Control_PropertyUtilities.IsControlNull(radioButton))
         {
             if (data.RadioButton.Equals("Reject"))
             {
                 Control_ActionUtilities.Click(radioButton, String.Empty);
                 Control_ActionUtilities.Click(DL_SignCasebookPage.GetAddReasonLink(data.EventName, data.FormName), "Unable to Select Add Reason link for " + data.EventName + "-" + data.FormName);
                 BP_Modal_CRF_MarkItemUtilities.EnterComment(data.AddReason);
                 return(BP_Modal_CRF_MarkItemUtilities.ClickOkButton());
             }
             else if (!String.IsNullOrEmpty(data.RadioButton))
             {
                 return(Control_ActionUtilities.Click(radioButton, String.Empty));
             }
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }