Method: Capybara::Node::Matchers#has_no_text?
- Defined in:
- lib/capybara/node/matchers.rb
#has_no_text?(type, text, **options) ⇒ Boolean #has_no_text?(text, **options) ⇒ Boolean Also known as: has_no_content?
Checks if the page or current node does not have the given text content, ignoring any HTML tags and normalizing whitespace.
725 726 727 |
# File 'lib/capybara/node/matchers.rb', line 725 def has_no_text?(*args, **) make_predicate() { assert_no_text(*args, **) } end |