Hi all,<br>I'm trying to use twill to test a site that has a huge application form on it. It's not working particularly well, and I believe I've figured out why. I'm just not sure what to do about it. <br><br>
Let's say you need to select your state from a drop-down menu. The html looks like this:<br> <br> <select id="business_mailing_state" name="business[mailing_state]"><br> <option value=""></option>
<br> <option value="AK">Alaska</option><br> <option value="AL">Alabama</option><br> <option value="AR">Arkansas</option><br> </select>
<br><br>I'm trying to submit the form with no values selected, so I can test the form errors. However, twill doesn'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>>>> showforms()<br><br>Form #1<br>## ## __Name__________________ __Type___ __ID________ __Value__________________<br>1 business[mailing_state] select business ... ['AK'] of ['AK', 'AL', 'AR', 'AZ', ' ...
<br><br><br>I can likely talk to the site developer about putting a value on that first option ("--" or "Please select" or something similar), but I'm curious if anyone has other ideas about how to get around this problem. I'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>