Did you try:
#doesn't appear that your select_list has a name or id given so you will
#have to find the index-it will be the nth one from the top of the page
#using view source.
$ie.select_list(:index, 1).select_value('0')
or
$ie.select_list(:index, 1).select('All')
--Mark
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of George Hawthorne
Sent: Wednesday, May 17, 2006 9:13 AM
To: [email protected]
Subject: [Wtr-general] Tricky select list
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
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general