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