Method: Capybara::RackTest::Form#submit

Defined in:
lib/capybara/rack_test/form.rb

#submit(button) ⇒ Object



54
55
56
57
58
# File 'lib/capybara/rack_test/form.rb', line 54

def submit(button)
  action = button&.[]('formaction') || native['action']
  method = button&.[]('formmethod') || request_method
  driver.submit(method, action.to_s, params(button), content_type: native['enctype'])
end