As discoverd ina test opening a dialog and then peforming actions within the opened dialog are at risk for random failure.
The random failure is caused by a dialog resize/reposition after content has been inserted. Currently there is no way to wait for this as this behavior is debounced.
Currently the random failures do not occur because the Mink Phantomjs driver waits an additional 100ms on each wait statement. However on upgrading the driver or switching to another driver () this problem will become relevant.
1. Provide a better way to assert the dialog has opened.
2. Remove the random failure factor for opening a dialog.
Thanks @michielnugter for the patch. And tacituseu & droplet did a lot of researching on. Please credit them also if we can.