1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Using formmethod attribute(if exists) in submit button

This commit is contained in:
Emilia 2014-08-12 09:46:17 +02:00
parent 91a83f791b
commit 2e3c3262d4

View file

@ -72,7 +72,8 @@ class Capybara::RackTest::Form < Capybara::RackTest::Node
def submit(button)
action = (button && button['formaction']) || native['action']
driver.submit(method, action.to_s, params(button))
requset_method = (button && button['formmethod']) || method
driver.submit(requset_method, action.to_s, params(button))
end
def multipart?