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