public static bool ClickError(String error)
 {
     BrowserUtilities.DS_SwitchToFrame();
     try
     {
         IControl errorLink = DS_StudyVerificationMessagesDialog.GetErrorLink(error);
         Control_ActionUtilities.Click(errorLink, "Unable to click error " + error);
         BrowserUtilities.SwitchToWindow();
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }
 public static bool VerifyErrorWarnings(List <StudyVerificationErrorsData> errorsList)
 {
     BrowserUtilities.DS_SwitchToFrame();
     try
     {
         foreach (StudyVerificationErrorsData error in errorsList)
         {
             IControl errorLink = DS_StudyVerificationMessagesDialog.GetErrorLink(error.Error);
             if (Control_PropertyUtilities.IsControlNull(errorLink))
             {
                 return(false);
             }
         }
         Control_ActionUtilities.Click(StudyVerificationMessagesPopup.Close, "Unable to click Close button");
         BrowserUtilities.SwitchToWindow();
         return(true);
     }
     catch (Exception e)
     {
     }
     return(false);
 }