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