thoughtbot/capybara-webkit — pull request #341 by danivovich (2012-05-23 00:18:59+00:00)
Title: Support to control how JavaScript Dialogs are handled

Adds support to set if confirms and prompts should be accepted or rejected, as well as support to provide the text that should be sent to a JavaScript prompt. Also collects the alert, confirm, and prompt messages so that they can be asserted on.

Keeps the default return values if none of the new methods are called, so it should not change any existing behavior (accept confirms, reject prompts)