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);
 }
Beispiel #2
0
        public static bool OpenDCFRow(CRF_DCFTabData data)
        {
            IControl row = GetRowFromActiveDCFsSubTab(data);

            if (!Control_PropertyUtilities.IsControlNull(row))
            {
                return(Control_ActionUtilities.MouseClick(row, String.Empty));
            }
            return(false);
        }
Beispiel #3
0
 public static bool SelectActionOnManageFlagPlanandDataGroupsPage(string ManageActionOnFlag)
 {
     try
     {
         return(Control_ActionUtilities.MouseClick(DL_FlagManagementPage.FlagActionOnManage(ManageActionOnFlag), "Unable to Select the Action - " + ManageActionOnFlag + " on Manage Flags & Data Groups page."));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
 public static bool SelectPar()
 {
     try
     {
         return(Control_ActionUtilities.MouseClick(ScriptingPage.ParReference, "Not able to click on Reference"));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
Beispiel #5
0
 public static bool InvokeStudyRow(String studyStatus)
 {
     try
     {
         IControl studyTable = DL_StudyVersionManagementPage.StudyFilesTable;
         WebTable_SearchCriteriaItemList searchList = new WebTable_SearchCriteriaItemList();
         searchList.AddSearchItem(new WebTable_SearchCriteriaItem(1, studyStatus, TableColumnContentType.Text_Partial));
         IControl studyTableRow = WebTableUtilities.Table_FindRow(studyTable, searchList);
         return(Control_ActionUtilities.MouseClick(studyTableRow, String.Empty));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
         return(false);
     }
 }
 public static bool Uncheckthecheckbox(string SelectDropDownOption, string dropDownList)
 {
     BrowserUtilities.DS_SwitchToFrame();
     try
     {
         ImportLabDictionaryPage.ErrorType.WebElement.Click();
         IControl dropDownOption = ImportLabDictionaryPage.SelectErrorFromDropDown(SelectDropDownOption, dropDownList);
         Control_ActionUtilities.UncheckCheckbox(dropDownOption);
         Control_ActionUtilities.MouseClick(dropDownOption, "Unable to click on checkbox");
         BrowserUtilities.SwitchToWindow();
         return(true);
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
Beispiel #7
0
 public static bool SelectExpandAllIcon()
 {
     try
     {
         if (!Control_ActionUtilities.MouseClick(DL_CreateFlagDataGroupPage.ExpandAllIcon, "Unable to select the Expand all icon on the Flag DataGroup Page"))
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
 public static bool DissociateAllLabs()
 {
     try
     {
         bool noItemsFound = false;
         Control_ActionUtilities.Dropdown_SelectAllItems(DL_Site_AssociateLabsPage.AssociatedLabsListBox, out noItemsFound);
         if (noItemsFound)
         {
             return(Control_ActionUtilities.Click(DL_Site_AssociateLabsPage.CancelButton, String.Empty));
         }
         else
         {
             Control_ActionUtilities.MouseClick(DL_Site_AssociateLabsPage.RemoveButton, String.Empty);
             return(Control_ActionUtilities.Click(DL_Site_AssociateLabsPage.SaveButton, String.Empty));
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }