Hi all,
I have a page containing a table with multiple links ('View') with the
same name. The only thing that differs b/w them is the text they are
associated with. For example:
Acme X Corp <a href="clients/1">View</a>
Acme Y Corp <a href="clients/2">View</a>
etc.
In Cucumber I want to specify which View link to follow (ie. Given I
follow "View" for "Acme X Corp"). I know that in webrat's included
steps I can specify an id to click, or do a 'within' statement however
giving each link a unique id does not seem like the way to go.
What's best practice here? Should I give each anchor tag a name
attribute matching the company name and match on that (don't love that
as the only reason I'd be doing so would be for cucumber and not for
any other reason)? Or how do most handle this sort of simple
situation?
Thanks,
Arif
--
You received this message because you are subscribed to the Google Groups "webrat" group.
To post to this group, send email to
web...@googlegroups.com.
To unsubscribe from this group, send email to
webrat+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/webrat?hl=en.