I'm testing my webapp with Selenium but I can't find a way to verify that a modal panel has been closed.
The modal panel doesn't make any change to the originating page, so I can't check for a change there, but it may take some time to close or it may not close bacause of a validation error.
I tried with waitForElementNotPresent with no luck. I have no idea about how testing a condition which implies the panel to disappear.
Delving into Richfaces sources, waitForNotVisible turned out to be a solution.
Retrieving data ...