lib/generators/voluntary/product_dummy/templates/features/step_definitions/navigation_steps.rb
When /^I click the (\d+)(?:st|nd|rd|th) link of the (\d+)(?:st|nd|rd|th) row$/ do |link_position, row_position|
within(:row, row_position.to_i) { find(:xpath, ".//a[#{link_position.to_i}]").click }
end