Skip to content

Instantly share code, notes, and snippets.

@rblack
Created December 1, 2013 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rblack/7730597 to your computer and use it in GitHub Desktop.
Save rblack/7730597 to your computer and use it in GitHub Desktop.
<form method="post" id="info-form" action="#">
<input type="hidden" name="md" value="move"/>
<table>
<tbody>
<tr>
<td><input type="checkbox" name="test" value="12##48" checked="checked"/></td>
<td>Some value</td>
</tr>
<tr>
<td><input type="checkbox" name="test" value="15##25" checked="checked"/></td>
<td>Some value</td>
</tr>
<tr>
<th>
<button onclick="this.form.submit(); return false;">Submit</button>
</th>
</tr>
</tbody>
</table>
</form>
[01] GET http://localhost/
[02] POST http://localhost/
POST request
test <CheckboxValues {'12##48', '15##25'} for checkboxes name='test'>
md move
g.go('http://localhost/')
g.choose_form(xpath=".//form[@id='info-form']")
g.submit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment