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
Thanks for the response. I think I tried that one, still get the response: The ''Pollution'' option was not found in the "temp_aspect_topic_id" select box (Webrat::NotFoundError) Any more thought? Mike
Thanks for the response. I think I tried that one, still get the response: The ''Pollution'' option was not found in the "temp_aspect_topic_id" select box (Webrat::NotFoundError) Any more thought? Mike
On Thu, Apr 23, 2009 at 4:34 AM, mikej <mikejeremiah at gmail.com> wrote:> Thanks for the response. ?I think I tried that one, still get the > response: > > The ''Pollution'' option was not found in the "temp_aspect_topic_id" > select box (Webrat::NotFoundError) > > Any more thought?Do you only have one select box on the page with that id (hidden or showing, maybe new and/or edit forms) ?> > Mike > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- Zach Dennis http://www.continuousthinking.com (personal) http://www.mutuallyhuman.com (hire me) @zachdennis (twitter)