#239 awaiting-patch
Ingo

'click(s)' method

Reported by Ingo | May 4th, 2009 @ 09:33 AM | in 1.0

With CSS, links can be styled as buttons and buttons can be styled as links. Users don't care whether what they click on is a link or a button, they just care about the label. Cucumber features are written from a user perspective, so I often find myself wanting a 'clicks' method in webrat that locks for BOTH links and buttons and tries to click what it finds:

clicks 'Buy' instead of clicks_button 'Buy' or clicks_link 'Buy'

Comments and changes to this ticket

  • gaffo

    gaffo May 10th, 2009 @ 10:32 PM

    • State changed from “new” to “awaiting-patch”
    • Milestone set to 1.0

    We are in general working to make clicking "generic". I'm marking this as a placeholder feature for 1.0 as once it's there cucumber should read nicer as well and it's a great to have feature we have already discussed internally. Thanks for the input Ingo!

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages