I just configured a popup watcher for my action and it doesn't work.
Can you please have a look on the code below and tell me what is wrong in my config?
The popup watcher is configured as "user code" ( ClosePopupWindows() ).
public void ClosePopupWindows()
{
PopupWatcher myPopupWatcher = new PopupWatcher();
myPopupWatcher.Watch("/form[@class='SunAwtDialog']", CloseUpdateCheckDialog);
}
public static void CloseUpdateCheckDialog(Ranorex.Core.RxPath myPath, Ranorex.Core.Element myElement) {
Keyboard.Press("{Tab}");
Keyboard.Press("{Tab}");
Keyboard.Press("{Space}");
Keyboard.Press("{Return}");
}
Thanks
