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:
parent
91a83f791b
commit
2e3c3262d4
1 changed files with 2 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue