Hi! You have a typo in your select statement:
$b.select_list(:index, 2).select_list("Test") should be: $b.select_list(:index, 2).select("Test") (although, I think $b.select_list(:index, 2).set("Test") should work as well) Have you tried firing your javascript to put focus on the field just before attempting the select statement? Hope this helps! -Tiffany On Mar 15, 2:43 pm, tester86 <sagar.am...@gmail.com> wrote: > I need to click on a drop down. I have a script that will set the > focus in the drop down list then when I go to select the value it does > not select the list. Manually: When I click in the drop down field it > gets activated then when I click on the drop down arrow it will > display the list. > > Interaction: > > When I click in the cell it sets the focus, then I have to click on > the drop down arrow in order to see the list of options. If I do: > > $b.table(:index, 1)[2][6].fire_event("onmousedown") > > The above will set the focus in the field that contains the drop down. > Manually I have click on the drop down in order to see the list > > If I do: > > $b.select_list(:index, 2).select_list("Test") > > It does not click on Test. Is there any way I can click on the drop > down in order to see the list.. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general@googlegroups.com To unsubscribe: watir-general+unsubscr...@googlegroups.com