[rspec-users] specifying which button webrat should press

Pau Cor
2008-11-20T17:11:09Z

Andrew Premdas wrote:
>   And I accept Fred''s invite
> scans better than
>   And I push "accept" near "Fred"


That definitely is better. I guess I was trying to be too broad. My
original goal was to write a match that would work on any page with
multiple links/buttons (of the same name).

It seems like everyone is suggesting that I write a step that is more
specific to this particular page. That will make my step matcher MUCH
simpler, and it will make my story more readable.

Thanks for all the advice!

Paul