- 1. Does it stops execution of UI actions (mouse moves and clicks) in the main thread while executing PopupItemCallback?
2. Does it have any way to determine which PopupItemCallback to execute when several pop-ups are detected (so that different pop-up handlers do not interfere each other)?
I have test automation for web application that uses Java plug-in.
Before logging in to the application I close Java security warning dialogs with marking of Do not show again check box (I have 'Do you want to run this application and 'Allow access to this application' dialogs).
Nevertheless during execution of tests on Lab machines in approximately 20% of cases I have 'Allow access to this application Java dialog popping up again (even multiple times). Popping up of Java security warning furthermore results in appearance of web browser's Unresponsive script dialog (see screenshot in the end). Important thing with Unresponsive script pop-up is that it is blocked by Java pop-up - so that to close Unresponsive script dialog 'Allow access' Java security warning dialog should be closed first.
Previously I used my own watcher for pop-ups but refused it due to following reason:
- Pop-up dialog windows are implemented with Java and so recognized and handled slowly - which is performed in the separate thread. In the same time main test screnario is executed in the main thread invoking mouse actions which though not being effective activate window of Web Browser and hide Java Security warning window preventing it from closing by my pop-up watcher.
Problem was: Mechanism to suspend mouse actions performed by Ranorex in the main thread (and in threads of watchers that close blocked pop-ups) is required to handle pop-ups effectively.
http://www.ranorex.com/support/user-gui ... html#c4678
http://www.ranorex.com/Documentation/Ra ... atcher.htm
Screenshot