class Capybara::Queries::TextQuery
def invisible_message
def invisible_message invisible_text = text(@node, :all) invisible_count = invisible_text.scan(@search_regexp).size if invisible_count != @count "it was found #{invisible_count} #{Capybara::Helpers.declension("time", "times", invisible_count)} including non-visible text" end rescue # An error getting the non-visible text (if element goes out of scope) should not affect the response end