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