George,
You can do something like
ie.select_list(:index, 1).select('All')
to select the "All" option. I'm assuming here that this is the first
select_list in the HTML since this is just a partial. If the select
list had an id or name you could do something like
ie.select_list(:id, '<select id>').select('All')
David
George Hawthorne wrote:
> Hi,
>
> Could anyone suggest the correct way to select option "0" from the
> list shown in the following HTML example? By default option "1" is
> selected and I can't figure out how to get WATIR to change the
> selection. TIA.
>
> <input type="hidden" name="people$hSelectId" id="people_hSelectId" />
> <div id="people_divXtable" class="genTable" style="width:480px;">
> <div id="divXTableD" style='width:480px'>
> <div class='mainGenDiv' style='overflow:hidden;'>
> <table>
> <tr class='header'>
> <td>
> <div style='width:62px;'>
> <a href="javascript:OnSort('D',0);">First Name</a><img
> src='img/filterup_off.gif'/><img src='img/filterdown_on.gif'/><br />
> <select onchange="OnFilter('D',0,this);" style='width:54px;'>
> <option value="0">All</option>
> <option selected='selected' value="1">Assigned</option>
> <option value="2">A</option>
> <option value="3">B</option>
> <option value="4">C</option>
> <option value="5">D</option>
> ...
> </select>
> </div>
> </td>
>
> George
>
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general