[rspec-users] Webrat - Fill in text field by id

Yi hayafirst at gmail.com
Fri Mar 6 11:55:36 EST 2009

It does take id. At least in the trunk webrat

On Fri, Mar 6, 2009 at 10:23 AM, Steve Molitor <stevemolitor at gmail.com>wrote:

> Is there a way to locate and 'fill in' a text field (or check a check box,
> select an option, etc.) by id?  It seems that the fill_in method takes
> either the text of the label pointing to the field or the field name.  The
> are cases when writing cucumber steps when using the HTML id of the input
> element would be easier, especially when a page has multiple forms with the
> same labels and input names.
> Thanks,
> Steve
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090306/8b158fab/attachment.html>

More information about the rspec-users mailing list