Method: Capybara::Node::Matchers#has_link?
- Defined in:
- lib/capybara/node/matchers.rb
#has_link?(locator = nil, **options, &optional_filter_block) ⇒ Boolean
Checks if the page or current node has a link with the given text or id.
359 360 361 |
# File 'lib/capybara/node/matchers.rb', line 359 def has_link?(locator = nil, **, &optional_filter_block) has_selector?(:link, locator, **, &optional_filter_block) end |