public static void GetCampaignArray(string[] campaignArrayName, Action verifyMethod)
        {
            int retryTimes = 10;
            Common.UITestFramework.UIMaps.DownloadAccountWindowClasses.DownloadAccountWindow downloadAccountWindow = new Common.UITestFramework.UIMaps.DownloadAccountWindowClasses.DownloadAccountWindow();

            do
            {
                //Select campaign in Download Account Window
                downloadAccountWindow.UIDownloadAccounthaihaWindow.WaitForControlExist();

                System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["DefaultPollingRetryWaitTime"]));
            }
            while (!downloadAccountWindow.SelectCampaign(campaignArrayName) && (retryTimes--) != 0);

            if (retryTimes == 0)
            {
                StringBuilder campaignNames = new StringBuilder();
                foreach (string campaignName in campaignArrayName)
                {
                    campaignNames.Append(campaignName).Append(" ");
                }
                throw new Exception("Fail to select campaign name '" + campaignNames.ToString() + "' in download account window!!");
            }

            //Click Yes Button on Warning Window
            Common.UITestFramework.UIMaps.WarningWindowClasses.WarningWindow warningWindow = new Common.UITestFramework.UIMaps.WarningWindowClasses.WarningWindow();
            bool worningWindowExist = warningWindow.UIWarningWindow.WaitForControlExist();
            if (worningWindowExist)
            {
                warningWindow.ClickYesButton();
                warningWindow.UIWarningWindow.WaitForControlNotExist();
            }

            downloadAccountWindow.UIDownloadAccounthaihaWindow.WaitForControlNotExist();

            Common.UITestFramework.UIMaps.DetailedInfoForDownloadClasses.DetailedInfoForDownload detailedInfoForDownloadWindow = new Common.UITestFramework.UIMaps.DetailedInfoForDownloadClasses.DetailedInfoForDownload();
            detailedInfoForDownloadWindow.UIDetailedInfoforDownlWindow.WaitForControlExist();
            detailedInfoForDownloadWindow.UIDataGridViewTableForJob.WaitingForStatusPropertyEqual("Finished");

            //Verify Account Name and Information panel
            verifyMethod();

            //Click close button
            detailedInfoForDownloadWindow.ClickCloseButton();
            detailedInfoForDownloadWindow.UIDetailedInfoforDownlWindow.WaitForControlNotExist();
        }
        public static void GetAllCampaignsUI(Action verifyMethod)
        {
            int retryTimes = 10;
            Common.UITestFramework.UIMaps.DownloadAccountWindowClasses.DownloadAccountWindow downloadAccountWindow = new Common.UITestFramework.UIMaps.DownloadAccountWindowClasses.DownloadAccountWindow();

            do
            {
                //Select campaign in Download Account Window
                downloadAccountWindow.UIDownloadAccounthaihaWindow.WaitForControlExist();

                System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["DefaultPollingRetryWaitTime"]));
            }
            while (!downloadAccountWindow.SelectAllCampaigns() && (retryTimes--) != 0);

            if (retryTimes == 0)
            {
                throw new Exception("Fail to select all campaigns in download account window!!");
            }

            //Click Yes Button on Warning Window
            Common.UITestFramework.UIMaps.WarningWindowClasses.WarningWindow warningWindow = new Common.UITestFramework.UIMaps.WarningWindowClasses.WarningWindow();
            bool worningWindowExist = warningWindow.UIWarningWindow.WaitForControlExist();
            if (worningWindowExist)
            {
                warningWindow.ClickYesButton();
                warningWindow.UIWarningWindow.WaitForControlNotExist();
            }
            downloadAccountWindow.UIDownloadAccounthaihaWindow.WaitForControlNotExist();

            Common.UITestFramework.UIMaps.DetailedInfoForDownloadClasses.DetailedInfoForDownload detailedInfoForDownloadWindow = new Common.UITestFramework.UIMaps.DetailedInfoForDownloadClasses.DetailedInfoForDownload();
            detailedInfoForDownloadWindow.UIDetailedInfoforDownlWindow.WaitForControlExist();
            detailedInfoForDownloadWindow.UIDataGridViewTableForJob.WaitingForStatusEqual("Finished", detailedInfoForDownloadWindow);

            //Verify Account Name -> Campaign Name and Information panel
            verifyMethod();

            //Click close button
            detailedInfoForDownloadWindow.ClickCloseButton();
            detailedInfoForDownloadWindow.UIDetailedInfoforDownlWindow.WaitForControlNotExist();
        }