# File lib/capybara/node/matchers.rb, line 202 def has_text?(content) synchronize do unless Capybara::Helpers.normalize_whitespace(text).match(Capybara::Helpers.to_regexp(content)) raise ExpectationNotMet end end return true rescue Capybara::ExpectationNotMet return false end