module Capybara::Node::Matchers
def has_link?(locator = nil, **options, &optional_filter_block)
-
(Boolean)- Whether it exists
Options Hash:
(**options)-
:href(String, Regexp) -- The value the href attribute must be
Parameters:
-
options() -- -
locator(String) -- The text or id of a link to check for
def has_link?(locator = nil, **options, &optional_filter_block) has_selector?(:link, locator, options, &optional_filter_block) end