コード例 #1
0
 public static bool ClickInboxItem(String folderName, String subject)
 {
     try
     {
         int i = 0;
         while (i < 25)
         {
             if (BP_Inbox_ActionPaletteUtilities.InvokeActionPaletteItem(folderName))
             {
                 ReadOnlyCollection <IControl> rows = WebTableUtilities.GetRows(Pages.DataLabs.Inbox.DL_InboxPage.InboxTable);
                 foreach (IControl row in rows)
                 {
                     IControl c = WebTableUtilities.GetElement(row, subject, 3, TableColumnContentType.Link_Partial);
                     if (!Control_PropertyUtilities.IsControlNull(c))
                     {
                         return(Control_ActionUtilities.Click(c, "Unbale to click inbox item for subject " + subject));
                     }
                 }
             }
             ++i;
             Thread.Sleep(5000);
         }
     }
     catch (Exception e)
     {
     }
     return(false);
 }
コード例 #2
0
        public static bool CheckInbox_NormalizationSubject_FromTop(String folderName, List <String> subjectList)
        {
            int  counter      = 0;
            bool jobsFinished = false;

            try
            {
                BP_Inbox_ActionPaletteUtilities.InvokeActionPaletteItem(folderName);
                while (counter <= 60 && !jobsFinished)
                {
                    Thread.Sleep(5 * 1000);
                    BrowserUtilities.RefreshPage();
                    jobsFinished = AreNormalizationJobsFinished(subjectList);
                    ++counter;
                }
            }
            catch (Exception e)
            {
            }
            return(jobsFinished);
        }