:nth-child selector.
EG, a list of dates are in a <ul> with the id #dates:
page.should have_selector("ul#dates li:nth-child(1)", content: @date1.content)
page.should have_selector("ul#dates li:nth-child(2)", content: @date2.content)
:nth-child selector.
EG, a list of dates are in a <ul> with the id #dates:
page.should have_selector("ul#dates li:nth-child(1)", content: @date1.content)
page.should have_selector("ul#dates li:nth-child(2)", content: @date2.content)