Slowness between click events
Posted: Thu Jul 20, 2017 6:29 pm
I am stumped on an issue that I hope someone can help me with. I am recording WINForm click events navigating from one screen to the next. In that click event, threre could be 2 two dialogs windows that popup and I want to just click the OK button or the CLOSE button to continue navigation to the next screen. I do this with User Code and say if the repository item exists, click the button.
What is happening is 'IF' neither one of the dialog boxes displays, the recording hangs about 40-60 seconds before it starts the next recording and then sails along. I have multiple cases that I am running and it adds so much additional time to finish it is causing issues.
I have attached a document with screen shots. Please let me know if you have any questions or comments. I will appreciate greatly.
NOTE: I also tried a Popup-Watcher, but it added no value either. See commented code below.
///public void GroupNotePopupWatcher()
///{
///PopupWatcher MyGroupNoteCheck = new PopupWatcher();
/// Add a watch for the form, which will trigger the Method Group Note Exists
///MyGroupNoteCheck.Watch("/form[@controlname='frmGroupNotes']", CloseGroupNoteDialog);
///MyGroupNoteCheck.Start();
///}
///public static void CloseGroupNoteDialog (Ranorex.Core.Repository.RepoItemInfo myInfo, Ranorex.Core.Element myElement)
///{
///repo.FormGroupNotes.BtnClose.Click();
///}
///public static void CloseGroupNoteDialog (Ranorex.Core.RxPath myPath, Ranorex.Core.Element myElement)
///{
///repo.FormGroupNotes.BtnClose.Click();
///Ranorex.Report.Info("GroupNote Button Close has been clicked" );
///}
What is happening is 'IF' neither one of the dialog boxes displays, the recording hangs about 40-60 seconds before it starts the next recording and then sails along. I have multiple cases that I am running and it adds so much additional time to finish it is causing issues.
I have attached a document with screen shots. Please let me know if you have any questions or comments. I will appreciate greatly.
NOTE: I also tried a Popup-Watcher, but it added no value either. See commented code below.
///public void GroupNotePopupWatcher()
///{
///PopupWatcher MyGroupNoteCheck = new PopupWatcher();
/// Add a watch for the form, which will trigger the Method Group Note Exists
///MyGroupNoteCheck.Watch("/form[@controlname='frmGroupNotes']", CloseGroupNoteDialog);
///MyGroupNoteCheck.Start();
///}
///public static void CloseGroupNoteDialog (Ranorex.Core.Repository.RepoItemInfo myInfo, Ranorex.Core.Element myElement)
///{
///repo.FormGroupNotes.BtnClose.Click();
///}
///public static void CloseGroupNoteDialog (Ranorex.Core.RxPath myPath, Ranorex.Core.Element myElement)
///{
///repo.FormGroupNotes.BtnClose.Click();
///Ranorex.Report.Info("GroupNote Button Close has been clicked" );
///}