[rspec-users] Webrat - Fill in text field by id
lists at ruby-forum.com
Fri Mar 6 12:03:48 EST 2009
Steve Molitor wrote:
> Is there a way to locate and 'fill in' a text field (or check a check
> 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.
> are cases when writing cucumber steps when using the HTML id of the
> element would be easier, especially when a page has multiple forms with
> same labels and input names.
Yes, just provide the text of the id selector, do not add anything else.
So, for an id="test_this_id" on a button you can write in your
Posted via http://www.ruby-forum.com/.
More information about the rspec-users