[rspec-users] specifying which button webrat should press

James Byrne
2009-02-20T20:50:44Z

Zach Dennis wrote:

>
> Can you use the following or do you need to use an id for other reason?
>
>    click_button "Create"
>

That is how I am doing the check now.  I am simply investigating whether
another means is available to me.  At the back of my mind is the idea
that it is the presence of the function and not the form of the label
that is important.  By adding an id to the input tag and selecting on
that then whatever the button itself is labeled as becomes unimportant.