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