We created a PopUpWatch for OS exceptions like "… has stopped working".
In the callback we call the method "HandleAndCloseWatchedDialog" we want to execute when the event (the exception) occurs.
Code: Select all
myPopupWatcher.Watch(new RxPath("/form[@title='Basereport']/?/?/element[@instance='0']/button[@text='Close the program']"), HandleAndCloseWatchedDialog);
It shall create a screenshot for further investigations.
How to "create" the "entire Desktop" as "Element" (what the user is seening when the method is called), adding it in the repo and having Access to without compile errors?
Thanks for your help.
Best regards
_KK_