class Capybara::Selenium::Driver
def accept_modal(_type, **options)
def accept_modal(_type, **options) yield if block_given? modal = find_modal(**options) modal.send_keys options[:with] if options[:with] message = modal.text modal.accept message end
def accept_modal(_type, **options) yield if block_given? modal = find_modal(**options) modal.send_keys options[:with] if options[:with] message = modal.text modal.accept message end