2009/4/22 mikej <mikejerem...@gmail.com>

> I have a select box:
>
> <select id="temp_aspect_topic_id" name="temp_aspect[topic_id]">
>        <option value="">– Select Topic –</option>
>        <option value="1">Pollution</option>
> </select>
>
> I would like to select the pollution option from the list using
> webrat.
>
> I've tried:
>
> select "Pollution", :from => "temp_aspect[topic_id]"
> select "Pollution"


you should select by the id attribute, not the name attribute, so:

select "Pollution", :from => "temp_aspect_topic_id"

should work

-- roovo

-- 
roovoweb.com
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to