Method: Capybara::Session#accept_confirm
- Defined in:
- lib/capybara/session.rb
#accept_confirm(text, **options) { ... } ⇒ String #accept_confirm(**options) { ... } ⇒ String
Execute the block, accepting a confirm.
Expects a block whose actions will trigger the display modal to appear.
669 670 671 |
# File 'lib/capybara/session.rb', line 669 def accept_confirm(text = nil, **, &blk) accept_modal(:confirm, text, , &blk) end |