Example #1
0
 public void WhenIClickOkButtonOnTheChangeMapLabDictErrorDialog()
 {
     if (!BP_DS_Labs_MapLabDictionry_DictionayChageDialog.ClickContinueButton())
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Example #2
0
 public void ThenISeeChangeMapLabDictErrorDialogWithTitleAndErrorMessage(string Title, string ErrorMsg)
 {
     if (!BP_DS_Labs_MapLabDictionry_DictionayChageDialog.ISDialogExist(Title, ErrorMsg))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Example #3
0
 public static bool SelectLabDictItem(String itemName)
 {
     try
     {
         Control_ActionUtilities.Dropdown_SelectItem(MapLabDictionary.SelectLabDictDropDown, itemName, "Unable to select " + itemName);
         if (BP_DS_Labs_MapLabDictionry_DictionayChageDialog.ISDialogExist("Confirm", "Changing Lab Dictionary will remove existing mappings."))
         {
             Control_ActionUtilities.Click(DS_Labs_StudySaveConfirmationDialog.ContinueButton, "Unable to click continue button");
         }
         return(true);
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }