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