class Capybara::Driver::Base

def accept_modal(type, **options, &blk)

Raises:
  • (Capybara::ModalNotFound) - if modal dialog hasn't been found

Returns:
  • (String) - the message shown in the modal

Options Hash: (**options)
  • :with (String) -- Text to fill in in the case of a prompt
  • :text (String, Regexp) -- Text to verify is in the message shown in the modal
  • :wait (Numeric) -- How long to wait for the modal to appear after executing the block.

Parameters:
  • type (:alert, :confirm, :prompt) --
def accept_modal(type, **options, &blk)
  raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#accept_modal'
end