Method: Capybara::Node::DocumentMatchers#has_title?
- Defined in:
- lib/capybara/node/document_matchers.rb
#has_title?(string, **options) ⇒ Boolean #has_title?(regexp, **options) ⇒ Boolean
Checks if the page has the given title.
44 45 46 |
# File 'lib/capybara/node/document_matchers.rb', line 44 def has_title?(title, **) make_predicate() { assert_title(title, **) } end |