title: How to detect POST after form submit in Selenium python?
body: <p>I'm using Selenium (python bindings, with Django) for automated web app testing.  My page has a form with a button, and the button has a <code>.click()</code> handler that captures the click (i.e. the form is not immediately submitted).  The handler runs <code>function2()</code>, and when <code>function2()</code> is done, it submits the form. </p>
  
  <p>In my test with Selenium, I fill in the form, then click the Submit button.  I want to verify that the form is eventually submitted (resulting in a POST request).  The form POSTs and then redirects with GET to the same url, so I can't check for a new url.  I think I need to check that the POST request occurs.  How do I check for successful form submission?</p>
  
  <p>Alternatively I could check at the database level to see that some new object is created, but that would make for a bad "unit" test.</p>