class Capybara::Driver::Base
def dismiss_modal(type, **options, &blk)
-
(Capybara::ModalNotFound)- if modal dialog hasn't been found
Returns:
-
(String)- the message shown in the modal
Options Hash:
(**options)-
: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 dismiss_modal(type, **options, &blk) raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#dismiss_modal' end