Help with webrat and selectors

Hi, sorry if this isnt directly an rspec question but maybe someone
can help

lets say a page contains a list setup like this

in my story i want to refer to “first item”, “second item” and “last
item” rather than by name
What I’d like is to

  • get the n’th item’s numeric id
  • get the n’th item’s link

so i can do something like
@item = Item.find( id )
visit link


nevermind, hpricot to the rescue