title: Using Python Mechanize like "Tamper Data"
body: <p>I'm writing a web testing script with python (2.6) and mechanize (0.1.11).  The page I'm working with has an html form with a select field like this:</p>
  
  <pre><code>&lt;select name="field1" size="1"&gt;
      &lt;option value="A" selected&gt;A&lt;/option&gt;
      &lt;option value="B"&gt;B&lt;/option&gt;
      &lt;option value="C"&gt;C&lt;/option&gt;
      &lt;option value="D"&gt;D&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>In mechanize, if I try something like this:</p>
  
  <pre><code>browser.form['field1'] = ['E']
  </code></pre>
  
  <p>Then I get an error: <code>ClientForm.ItemNotFoundError: insufficient items with name 'E'</code></p>
  
  <p>I can do this manually with the "Tamper Data" firefox extension.  Is there a way to do this with python and mechanize?  Can I somehow convince mechanize that the form actually has the value I want to submit?</p>