mechanize formの指定方法色々

page = agent.get('<url>');

form = page.forms.with.name('名前').first
form = page.forms.first
form = page.forms[2]