Пример #1
0
        public void CheckCompleteLoad()
        {
            SystemLog.LogAuditMessage(EntityIspf.constScrName, DiagnosticLevel.level2, MethodBase.GetCurrentMethod().Name + EntityGlobal.METHOD_START, EntityGlobal.transactionId);


            TCSRPA.XMLLibrary.ScreenIdentifier menuText = XMLLibrary.GetScreenIdentifier(EntityIspf.constScrName, EntityIspf.constMenuText);

            string menuTextCheck = null;

            objWatch.Restart();
            while (menuTextCheck == null)
            {
                if (objWatch.ElapsedMilliseconds < EntityGlobal.pageLoadWaitTime)
                {
                    menuTextCheck = MainFrameAdapter.GetScreenText(menuText.Row, menuText.Column, menuText.Length);
                    if (!(menuTextCheck.Equals(menuText.Text)))
                    {
                        throw new UINotSupported(EntityIspf.constScrName);
                    }
                }
                else
                {
                    throw new UINotSupported(EntityIspf.constScrName);
                }
            }

            SystemLog.LogAuditMessage(EntityIspf.constScrName, DiagnosticLevel.level2, MethodBase.GetCurrentMethod().Name + EntityGlobal.METHOD_END, EntityGlobal.transactionId);
        }
Пример #2
0
 public void ExtractElements()
 {
     incorrectUserIdText = XMLLibrary.GetScreenIdentifier(EntityPwd.constScrName, EntityPwd.constIncorrectUserIdLbl);
     incorrectUserIdMsg  = MainFrameAdapter.GetScreenText(incorrectUserIdText.Row, incorrectUserIdText.Column, incorrectUserIdText.Length);
 }