i had solved this problem using Webdriver module and phantomjs browser.
$I->click(‘Click modal form’);
$I->wait(10); // wait 10 seconds for example
And now you are able to test modal form.
If you need more information about this please let me know and I will try to help you.