Method: Capybara::Cuprite::Driver#accept_modal
- Defined in:
- lib/capybara/cuprite/driver.rb
#accept_modal(type, options = {}) ⇒ Object
302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/capybara/cuprite/driver.rb', line 302 def accept_modal(type, = {}) case type when :confirm browser.accept_confirm when :prompt browser.accept_prompt [:with] end yield if block_given? find_modal() end |