[rspec-users] Select box with Webrat
mikej
mikejeremiah at gmail.com
Wed Apr 22 06:35:58 EDT 2009
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"
In both cases I receive the error:
The 'Pollution' option was not found
Any suggestions much appreciated,
Mike
More information about the rspec-users
mailing list