Have a look at: https://github.com/jnicklas/capybara/blob/master/lib/capybara/node/matchers.rb#L142
It's probably worth trying tomorrow

I've used in the past ```has_css(selector, count: 1)``` and worked. But wasn't sure about xpath.