I want to make use of the PopupWatcher library from the Ranorex Automation Helpers.
It already works fine to check for a popup and confirm it with e.g. OK button.
But, in my case, I need to do additional actions when the popup shows up, so basically "if popup appears, do ...."
How is it possible to execute a user code method or a recording conditionally on the popup's appearance?
I tried something like
Code: Select all
PopupWatcher myWatcher = new PopupWatcher();
myWatcher.Watch(myRepository.AlarmPopup.SelfInfo, myUserCodeMethod);
myWatcher.Start();
I do not know what exactly a "Notification callback" is, and if this should fit what I am aiming for.Argument 2: cannot convert from 'method group' to 'Ranorex.PopupItemCallback' (CS1503)
thank you in advance!
BR mrt