title: How to select radio buttons and submit a form
body: <p>This is the HTML:</p>
  
  <pre><code>&lt;form method="post" action="./xxxxx" name="form1"&gt;
      &lt;input type="hidden" name="requestKey" value="52032a76cf53340b07052fd143feddc4a9d8f18130c80ec86003ab56e0d91b36"/&gt;
      &lt;input type="hidden" name="option" value="txnlist"&gt;
      &lt;input type="hidden" name="account" value='1336169999'&gt;
      &lt;input type="hidden" name="app" value="D"&gt;
      &lt;input type="hidden" name="lockType" value=""&gt;
  
      &lt;p&gt;&lt;span class="header2"&gt;&amp;nbsp;Statement options &lt;/span&gt;
          &lt;table summary="" width="100%" border="0" cellpadding="1" cellspacing="1"&gt;
              &lt;tr&gt;
                  &lt;td width="20"&gt;&lt;/td&gt;
                  &lt;td width="20"&gt;&lt;input type="radio"  name="optDateFilter" value="1"&gt;&lt;/td&gt;
                  &lt;td&gt;Transactions for the last 30 days&lt;/td&gt;
                  &lt;td&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td width="20"&gt;&lt;/td&gt;
                  &lt;td width="20"&gt;&lt;input type="radio" name="optDateFilter"  value="2"&gt;&lt;/td&gt;
                  &lt;td&gt;Transactions for the last 90 days&lt;/td&gt;
                  &lt;td&gt;&lt;/td&gt;
              &lt;/tr&gt;
              &lt;tr&gt;
                  &lt;td width="20"&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td width="20"&gt;&lt;input type="radio" name="optDateFilter" checked='checked' value="3" style="vertical-align: middle"&gt;&lt;/td&gt;
                  &lt;td&gt;
                      &lt;div&gt;
                          &lt;font style="vertical-align: middle;"&gt;Transactions from&amp;nbsp;&lt;/font&gt;
                          &lt;script src='jquery/js/ui/min/jquery.ui.datepicker.min-1.8.10.js'&gt;&lt;/script&gt;
                          &lt;script type='text/javascript'&gt;$(function() {$('#datepicker1').datepicker( { changeMonth : true, changeYear : true, dateFormat : 'dd/mm/yy', showOn: 'both', buttonImage: 'images/calendar.png', buttonImageOnly: true }); }); &lt;/script&gt;
                          &lt;input type='text' id='datepicker1' name='txtFromDate' size='11' maxlength='10' value='14/12/2012' onchange="checkFromDate(document.form1.txtFromDate.value);document.form1.optDateFilter[2].checked = true;"&gt;
                          &lt;font style="vertical-align: middle;"&gt;to&lt;/font&gt;
                          &lt;script type='text/javascript'&gt;$(function() {$('#datepicker2').datepicker( { changeMonth : true, changeYear : true, dateFormat : 'dd/mm/yy', showOn: 'both', buttonImage: 'images/calendar.png', buttonImageOnly: true }); }); &lt;/script&gt;
                          &lt;input type='text' id='datepicker2' name='txtToDate' size='11' maxlength='10' value='01/01/2013' onchange="checkToDate(document.form1.txtFromDate.value,document.form1.txtToDate.value);document.form1.optDateFilter[2].checked = true;"&gt;
                      &lt;/div&gt;
                  &lt;/td&gt;
                  &lt;td&gt;&lt;font style="font-size: 8pt; vertical-align: middle;"&gt;&lt;i&gt;(maximum date range 3 months)&lt;/i&gt;&lt;/font&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;/table&gt;
          &lt;table summary="" cellpadding="1" cellspacing="1" border="0"&gt;
              &lt;tr&gt;
                  &lt;td width="20"&gt;&amp;nbsp;&lt;/td&gt;
                  &lt;td width="20"&gt;
                      &lt;a  href="javascript:if(document.form1.optDateFilter[2].checked==true){CheckAndSubmit(document.form1.txtFromDate.value,document.form1.txtToDate.value);}else{showOverlay();document.form1.submit();};"&gt;
                           &lt;img src="images/proceed.gif" alt="Show the selected range of transactions" border="0" width="22" height="22" /&gt;
                      &lt;/a&gt;
                  &lt;/td&gt;
                  &lt;td&gt;
                      &lt;a  href="javascript:if(document.form1.optDateFilter[2].checked==true){CheckAndSubmit(document.form1.txtFromDate.value,document.form1.txtToDate.value);}else{showOverlay();document.form1.submit();};" title="Show the selected range of transactions"&gt;Show the selected range of transactions&lt;/a&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is the code i have, and it is not working:</p>
  
  <pre><code>self.browser.select_form('form1')
  self.browser.form.set_all_readonly(False)
  self.browser['txtFromDate'] = '28/12/12'
  self.browser['txtToDate'] = '01/01/13'
  resp = self.browser.submit()
  html = resp.read()
  </code></pre>