Testing for javascript alerts with Capybara

Posted by Dhruv on Stack Overflow See other posts from Stack Overflow or by Dhruv
Published on 2010-04-28T23:34:27Z Indexed on 2010/04/28 23:37 UTC
Read the original article Hit count: 395

Filed under:
|
|

I'm using Cumcumber + capybara + selenium to run automated testing, but I'm having trouble finding a way to assert that a javascript alert is displayed.

This question seems has a solution with selenium, but I can't figure out how to call the selenium object using Capybara.

Is there a simple way to test for alerts using Capybara? Or is there a workaround?

© Stack Overflow or respective owner

Related posts about cucumber

Related posts about capybara