module Capybara::Node::Finders
def find_link(locator = nil, **options, &optional_filter_block)
-
(Capybara::Node::Element)
- The found element
Options Hash:
(**options)
-
class
(String, Array
) -- Match links that match the class(es) provided -
alt
(String
) -- Match links with a contained img element whose alt matches -
title
(String
) -- Match links with the title provided -
id
(String
) -- Match links with the id provided -
href
(String, Regexp, nil
) -- Value to match against the links href, if nil finds link placeholders ( elements with no href attribute)
Parameters:
-
locator
(String
) -- id, title, text, or alt of enclosed img element
Overloads:
-
find_link([locator], options={})
def find_link(locator = nil, **options, &optional_filter_block) find(:link, locator, options, &optional_filter_block) end