capybara text of matched row code example Example: capybara link with text find('a', text: 'Berlin', exact_text: true)