Watir question regarding selecting a hidden dropdown.

Posted by AJ on Stack Overflow See other posts from Stack Overflow or by AJ
Published on 2010-06-03T19:38:53Z Indexed on 2010/06/03 19:44 UTC
Read the original article Hit count: 214

Filed under:
|

Hi, I have two dropdowns, the second dropdown does not show until a choice is made from the first one. Using watir, i can select the first dropdown, and when i watch it, the second one becomes active, but it cannot select it. i just tried the regular select_list using name and id. Here is the code for the second drop down.

<td>
<input type="hidden" value="1" name="list" id="list">
<script type="text/JavaScript" language="JavaScript"></script>
<select>
<option value="">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</td>

I've also notice the value for the hidden field change as i select different options. Thanks for any help

© Stack Overflow or respective owner

Related posts about ruby

Related posts about watir