Hi all,<br>I&#39;m trying to use twill to test a site that has a huge application form on it. It&#39;s not working particularly well, and I believe I&#39;ve figured out why. I&#39;m just not sure what to do about it. <br><br>
Let&#39;s say you need to select your state from a drop-down menu. The html looks like this:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;select id=&quot;business_mailing_state&quot; name=&quot;business[mailing_state]&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;option value=&quot;&quot;&gt;&lt;/option&gt;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;option value=&quot;AK&quot;&gt;Alaska&lt;/option&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;option value=&quot;AL&quot;&gt;Alabama&lt;/option&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;option value=&quot;AR&quot;&gt;Arkansas&lt;/option&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;/select&gt;
<br><br>I&#39;m trying to submit the form with no values selected, so I can test the form errors. However, twill doesn&#39;t seem to recognize that first empty option. If you look at the site in a browser, the drop-down menu is initially a blank box. In twill, however, it skips the blank box and shows you the first populated option:
<br><br>&gt;&gt;&gt; showforms()<br><br>Form #1<br>## ## __Name__________________ __Type___ __ID________ __Value__________________<br>1&nbsp;&nbsp;&nbsp;&nbsp; business[mailing_state]&nbsp;&nbsp;select&nbsp;&nbsp;&nbsp;&nbsp;business ... [&#39;AK&#39;] of [&#39;AK&#39;, &#39;AL&#39;, &#39;AR&#39;, &#39;AZ&#39;, &#39; ... 
<br><br><br>I can likely talk to the site developer about putting a value on that first option (&quot;--&quot; or &quot;Please select&quot; or something similar), but I&#39;m curious if anyone has other ideas about how to get around this problem. I&#39;ve tried using fv to explicitly set the empty string, but that throws ItemNotFoundErrors.
<br><br>Thoughts?<br><br>thanks much,<br>pam<br><br>