The capybara-webkit driver allows you to test the content of any confirm dialog messages that are triggered by the app. Is there a way to do this in poltergeist?
How does one test the content of confirm dialogs using poltergeist?
1.6k views Asked by cddr At
1
It's not supported in poltergeist now but there's a workaround to check the content manually.
In our project we use a helper method to override the javascript
confirmfunction, store the message and check the content.P.S. There is an github issue discussing about this, though it's a 2 years long conversation, you can keep reading on https://github.com/jonleighton/poltergeist/issues/50