--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Submit a form with an optional button. Without a button:"
- !ruby/struct:SM::Flow::VERB 
  body: " page = agent.get('http://example.com')\n agent.submit(page.forms.first)\n"
- !ruby/struct:SM::Flow::P 
  body: With a button
- !ruby/struct:SM::Flow::VERB 
  body: " agent.submit(page.forms.first, page.forms.first.buttons.first)\n"
full_name: WWW::Mechanize#submit
is_singleton: false
name: submit
params: (form, button=nil, headers={})
visibility: public
