We are using webdriver for our functional tests. But our application uses the showModalDialog
JS function a lot to open a popup. When we try to test this functionality with webdriver it hangs from the moment the popup is opened.
We tried several things to test this:
- Using the workaround explained here. But this seems to be a fix for selenium and not for webdriver. We tried it but it didn't work.
- Searching for a good alternative, HtmlUnit opened the modal dialog and could interact with it, but it has it's drawbacks like no visual help to fix certain tests and it stopped execution when it detected a JS error in a JS library we have to use but have no control over.
How can we test this or work around this problem?