Method: Capybara::Queries::TitleQuery#resolves_for?

Defined in:
lib/capybara/queries/title_query.rb

#resolves_for?(node) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)


15
16
17
# File 'lib/capybara/queries/title_query.rb', line 15

def resolves_for?(node)
  (@actual_title = node.title).match?(@search_regexp)
end