I have following two elements in HTML
<a href="/berlin" >Berlin</a>
<a href="/berlin" >Berlin Germany </a>
I am trying to find the element by using following Capybara method
find("a", :text => "berlin")
Above will return two elements because both contains text berlin.
Is there a way to match exact text in Capybara ?