public void WhenIShouldSeeTheDictNotification(string notificationMessage) { if (!DS_BP_NotificationUtilities.VerifyNotificationForDict(notificationMessage)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public static bool IsStudyAvailableinHomePage(IEnumerable <StudyData> studies) { try { bool isClicked = false; String notificationMessage = "Study has been successfully deleted"; IControl StudiesTable = DS_HomePage.StudiesTable; foreach (StudyData study in studies) { WebTable_SearchCriteriaItemList searchList = new WebTable_SearchCriteriaItemList(); searchList.AddSearchItem(new WebTable_SearchCriteriaItem(1, study.StudyName, TableColumnContentType.Link)); IControl row = WebTableUtilities.Table_FindRow(DS_HomePage.StudiesTable, searchList, 0); if (!Control_PropertyUtilities.IsControlNull(row)) { IControl cell = WebTableUtilities.GetCell(row, 9); if ((Control_ActionUtilities.MouseClick(cell, String.Empty))) { if (Control_ActionUtilities.ClickModalButton(DS_ConfirmationPopup.DeleteJobsContinue)) { isClicked = DS_BP_NotificationUtilities.VerifyNotificationForDict(notificationMessage); } } } } return(isClicked); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }