How to find out if modal dialog is open?
How do I find out if a modal dialog is currently open?
I would try isVisible().
I have some events going on in the background and I want to prevent those events if ANY modal dialog is open (there are many modal dialogs in the application). How can I find that out?