teamcapybara/capybara · error · Capybara::NotSupportedByDriverError
Capybara::Driver::Base#dismiss_modal
Error message
Capybara::Driver::Base#dismiss_modal
What it means
Error "Capybara::Driver::Base#dismiss_modal" thrown in teamcapybara/capybara.
Source
Thrown at lib/capybara/driver/base.rb:152
# @option options [String] :with Text to fill in in the case of a prompt
# @return [String] the message shown in the modal
# @raise [Capybara::ModalNotFound] if modal dialog hasn't been found
#
def accept_modal(type, **options, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#accept_modal'
end
##
#
# Execute the block, and then dismiss the modal opened.
# @param type [:alert, :confirm, :prompt]
# @option options [Numeric] :wait How long to wait for the modal to appear after executing the block.
# @option options [String, Regexp] :text Text to verify is in the message shown in the modal
# @return [String] the message shown in the modal
# @raise [Capybara::ModalNotFound] if modal dialog hasn't been found
#
def dismiss_modal(type, **options, &blk)
raise Capybara::NotSupportedByDriverError, 'Capybara::Driver::Base#dismiss_modal'
end
def invalid_element_errors
[]
end
def wait?
false
end
def reset!; end
def needs_server?
false
end
def session_options
session&.config || Capybara.session_optionsView on GitHub (pinned to 15b5fdb76e)
When it happens
Trigger: Thrown at lib/capybara/driver/base.rb:152 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of teamcapybara/capybara@15b5fdb76e (2026-08-21).
Data as JSON: /api/errors/795f571fa40a109c.
Report an issue: GitHub.