On Fri, Feb 20, 2009 at 3:50 PM, James Byrne <li...@ruby-forum.com> wrote: > 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.
You should be able to click the button by id, by not using a CSS selector. ie: click_button "submit_commit_client" > 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. -- Zach Dennis http://www.continuousthinking.com http://www.mutuallyhuman.com _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users