# File lib/capybara/result.rb, line 26 def find_error if @result.size == 0 Capybara::ElementNotFound.new("Unable to find #{@query.description}") elsif @result.size > 1 Capybara::Ambiguous.new("Ambiguous match, found #{size} elements matching #{@query.description}") end end